From a95a8c2d87ffa75321b981393d0d7084a2ef3698 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Tue, 24 Feb 2026 14:36:03 +0330 Subject: [PATCH] env --- src/modules/payment/gateways/zarinpal.gateway.ts | 2 +- src/modules/payment/services/payments.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/payment/gateways/zarinpal.gateway.ts b/src/modules/payment/gateways/zarinpal.gateway.ts index 690e324..01bee6c 100755 --- a/src/modules/payment/gateways/zarinpal.gateway.ts +++ b/src/modules/payment/gateways/zarinpal.gateway.ts @@ -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('ZARINPAL_BASE_MERCHANT') - this.apiUrl = this.configService.getOrThrow('API_URL') || 'https://negareh-api.dev.danakcorp.com/' + this.apiUrl = this.configService.get('API_URL') || 'https://negareh-api.dev.danakcorp.com/' } private getAxiosErrorData(error: unknown): { status?: number; data?: unknown } | null { diff --git a/src/modules/payment/services/payments.service.ts b/src/modules/payment/services/payments.service.ts index b9ee7b9..e2772e4 100644 --- a/src/modules/payment/services/payments.service.ts +++ b/src/modules/payment/services/payments.service.ts @@ -42,7 +42,7 @@ export class PaymentService { private readonly invoiceService: InvoiceService, private readonly configService: ConfigService, ) { - this.frontUrl = this.configService.getOrThrow('FRONT_URL') || 'https://negareh-console.dev.danakcorp.com/' + this.frontUrl = this.configService.get('FRONT_URL') || 'https://negareh-console.dev.danakcorp.com/' } async payInvoice(invoiceId: string, dto: PayOrderDto, adminId?: string): Promise<{ paymentUrl: string | null }> {