irpayments
Advanced tools
Comparing version 1.10.3 to 1.10.4
@@ -24,3 +24,6 @@ "use strict"; | ||
this.baseUrl = "https://gateway.zibal.ir/v1"; | ||
this.Request = axios_1.default.create({ baseURL: this.baseUrl }); | ||
this.Request = axios_1.default.create({ | ||
baseURL: this.baseUrl, | ||
headers: { "Content-Type": "application/json" }, | ||
}); | ||
} | ||
@@ -32,3 +35,3 @@ setLazyMode(enable) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.Request.post(this.isLazyMode ? "/request/lazy" : "/request", Object.assign({ merchant: isSandbox ? "zibal" : this.merchant, amount, callbackUrl: this.callbackUrl }, opts)); | ||
const res = yield this.Request.post(this.isLazyMode ? "/request/lazy" : "/request", Object.assign({ merchant: isSandbox ? "zibal" : this.merchant, amount, callbackUrl: this.callbackUrl }, opts), { headers: { "Content-Type": "application/json" }, baseURL: this.baseUrl }); | ||
let statusMessage = null; | ||
@@ -71,3 +74,3 @@ if (res.data.result) { | ||
trackId, | ||
}); | ||
}, { headers: { "Content-Type": "application/json" }, baseURL: this.baseUrl }); | ||
let statusMessage = null; | ||
@@ -109,3 +112,3 @@ if (res.data.result) { | ||
trackId, | ||
}); | ||
}, { headers: { "Content-Type": "application/json" }, baseURL: this.baseUrl }); | ||
let statusMessage = null; | ||
@@ -112,0 +115,0 @@ if (res.data.result) { |
{ | ||
"name": "irpayments", | ||
"version": "1.10.3", | ||
"version": "1.10.4", | ||
"description": "IR Payments, a package for all payment gateways of IRAN", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
42301
990