From f4ae7ed9af6c9917f556022b017d3a2540d297f6 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Sun, 4 Jan 2026 21:49:09 +0330 Subject: [PATCH] fix : sep gateway --- src/modules/IPG/gateways/sep.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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) {