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)}`);