This commit is contained in:
2026-02-24 14:36:03 +03:30
parent c35765b706
commit a95a8c2d87
2 changed files with 2 additions and 2 deletions
@@ -34,7 +34,7 @@ export class ZarinpalGateway implements IPaymentGateway {
this.zarinpalRequestUrl = `${zarinpalBaseUrl}/pg/v4/payment/request.json`;
this.zarinpalVerifyUrl = `${zarinpalBaseUrl}/pg/v4/payment/verify.json`;
this.zarinpalMerchantId = this.configService.getOrThrow<string>('ZARINPAL_BASE_MERCHANT')
this.apiUrl = this.configService.getOrThrow<string>('API_URL') || 'https://negareh-api.dev.danakcorp.com/'
this.apiUrl = this.configService.get<string>('API_URL') || 'https://negareh-api.dev.danakcorp.com/'
}
private getAxiosErrorData(error: unknown): { status?: number; data?: unknown } | null {
@@ -42,7 +42,7 @@ export class PaymentService {
private readonly invoiceService: InvoiceService,
private readonly configService: ConfigService,
) {
this.frontUrl = this.configService.getOrThrow<string>('FRONT_URL') || 'https://negareh-console.dev.danakcorp.com/'
this.frontUrl = this.configService.get<string>('FRONT_URL') || 'https://negareh-console.dev.danakcorp.com/'
}
async payInvoice(invoiceId: string, dto: PayOrderDto, adminId?: string): Promise<{ paymentUrl: string | null }> {