diff --git a/src/modules/IPG/gateways/sep.ts b/src/modules/IPG/gateways/sep.ts index b8e9431..9efe18c 100644 --- a/src/modules/IPG/gateways/sep.ts +++ b/src/modules/IPG/gateways/sep.ts @@ -47,7 +47,7 @@ class SepGateway implements IGateway { const purchaseData = { Action: "Token", TerminalId: this.terminalNumber, - Amount: amount, // ریال + Amount: amount * 10,//ریال RedirectUrl: `${this.callBackURL}${callBackPath}`, ResNum: Date.now().toString(), CellNumber: _mobile, @@ -71,14 +71,7 @@ class SepGateway implements IGateway { } } - async checkOutgoingIp() { - try { - const response = await axios.get("https://api.ipify.org?format=json"); - return response.data.ip; - } catch (error) { - console.error("Could not determine outgoing IP", error); - } - } + async verifyPayment(data: { authority?: string; refNum?: string; amount: number }) { if (!this.gatewayApiUrl || !this.terminalNumber) {