chore: change the payment logic

This commit is contained in:
mahyargdz
2025-06-05 15:27:04 +03:30
parent bd40f349bf
commit dba7cec544
8 changed files with 259 additions and 72 deletions
-4
View File
@@ -5,16 +5,12 @@ export function zarinpalConfig() {
inject: [ConfigService],
useFactory: (configService: ConfigService) => ({
merchantId: configService.getOrThrow<string>("ZARINPAL_MERCHANT_ID"),
gatewayApiUrl: configService.getOrThrow<string>("ZARINPAL_API_URL"),
callBackUrl: configService.getOrThrow<string>("CALLBACK_URL"),
ipgType: configService.getOrThrow<string>("IPG_TYPE"),
}),
};
}
export interface IZarinpalConfig {
merchantId: string;
gatewayApiUrl: string;
callBackUrl: string;
ipgType: string;
}