env
This commit is contained in:
@@ -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 }> {
|
||||
|
||||
Reference in New Issue
Block a user