From be0185e6bd178e0345c879c3c06c0628fc7917a3 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Sun, 7 Dec 2025 09:44:00 +0330 Subject: [PATCH] up --- src/modules/payments/services/payment-gateway.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/payments/services/payment-gateway.service.ts b/src/modules/payments/services/payment-gateway.service.ts index 18485f9..1ed4b26 100644 --- a/src/modules/payments/services/payment-gateway.service.ts +++ b/src/modules/payments/services/payment-gateway.service.ts @@ -53,7 +53,7 @@ export class PaymentGatewayService { // Handle ZarinPal gateway if (gateway === PaymentGatewayEnum.ZarinPal) { - const callbackUrl = `${domain}/payments/${orderId}/callback`; + const callbackUrl = `${domain}/verify/${orderId}`; try { const gatewayResponse = await this.requestToZarinPalGateway({ amount, @@ -85,7 +85,7 @@ export class PaymentGatewayService { const errorMessage = error instanceof Error ? error.message : 'Unknown error'; throw new BadRequestException(`Failed to connect to payment gateway: ${errorMessage}`); } - } + } // If gateway is not supported, throw an error throw new BadRequestException(`Unsupported payment gateway: ${String(gateway)}`);