up
This commit is contained in:
@@ -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)}`);
|
||||
|
||||
Reference in New Issue
Block a user