chore: parsian

This commit is contained in:
mahyargdz
2025-06-07 15:01:38 +03:30
parent f4ce67c00c
commit 4a7003a532
14 changed files with 582 additions and 19 deletions
+22
View File
@@ -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",
};