payment bug

This commit is contained in:
2025-12-04 11:39:45 +03:30
parent 7dc94b40c2
commit accc03b96f
4 changed files with 10 additions and 10 deletions
@@ -94,7 +94,7 @@ export class PaymentGatewayService {
}
zarinpalPaymentUrl(gateway: PaymentGatewayEnum | null, authority: string | null) {
if (gateway === PaymentGatewayEnum.ZarinPal) {
if (gateway === PaymentGatewayEnum.ZarinPal && authority) {
return `${this.zarinpalPaymentBaseUrl}/${authority}`;
}
return null;