chore: parsian
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { ConfigService } from "@nestjs/config";
|
||||
|
||||
export function parsianConfig() {
|
||||
return {
|
||||
inject: [ConfigService],
|
||||
useFactory: (configService: ConfigService) => ({
|
||||
loginAccount: configService.getOrThrow<string>("PARSIAN_LOGIN_ACCOUNT"),
|
||||
callBackUrl: configService.getOrThrow<string>("CALLBACK_URL"),
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
export interface IParsianConfig {
|
||||
loginAccount: string;
|
||||
callBackUrl: string;
|
||||
}
|
||||
|
||||
export const ParsianConfiguration = {
|
||||
Address: "https://pec.shaparak.ir/NewIPG/?token=",
|
||||
WsdlInitial: "https://pec.shaparak.ir/NewIPGServices/Sale/SaleService.asmx?wsdl",
|
||||
WsdlConfirm: "https://pec.shaparak.ir/NewIPGServices/Confirm/ConfirmService.asmx?wsdl",
|
||||
};
|
||||
Reference in New Issue
Block a user