diff --git a/src/modules/IPG/gateways/sep.ts b/src/modules/IPG/gateways/sep.ts index ff1a00e..817f4cb 100644 --- a/src/modules/IPG/gateways/sep.ts +++ b/src/modules/IPG/gateways/sep.ts @@ -15,7 +15,7 @@ class SepGateway { private logger = new Logger(SepGateway.name); private gatewayApiUrl: string = process.env.SEP_HOST || "https://sep.shaparak.ir"; - private callBackURL = `https://www.fajrtabloshop.com/verify/saman/`; + private callBackURL = `https://fajrtabloshop.com/verify/saman/`; private TERMINAL_ID: string = process.env.SEP_TERMINAL_ID || "15364098"; private requestHeader = { "Content-Type": "application/json", Accept: "application/json" }; diff --git a/src/modules/IPG/gateways/zarinpal.ts b/src/modules/IPG/gateways/zarinpal.ts index f164343..2c15770 100644 --- a/src/modules/IPG/gateways/zarinpal.ts +++ b/src/modules/IPG/gateways/zarinpal.ts @@ -25,6 +25,8 @@ class ZarinPalGateway { metadata: { email, mobile }, }; + console.log('purchaseData',purchaseData); + const response = await axios.post(`${this.gatewayApiUrl}/v4/payment/request.json`, purchaseData, { headers: this.requestHeader }); const { data } = response.data as ZarinPalPGNewRequestData;