This commit is contained in:
2025-12-07 09:44:00 +03:30
parent 48a0e373b1
commit be0185e6bd
@@ -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)}`);