fix : sep gateway

This commit is contained in:
2026-01-04 21:49:09 +03:30
parent 26acf302c2
commit f4ae7ed9af
+2 -9
View File
@@ -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) {