Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

irpayments

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

irpayments - npm Package Compare versions

Comparing version 1.10.3 to 1.10.4

11

dist/drivers/zibal/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc