quickpos 1.0.904 → 1.0.905

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/paytr.js +2 -0
  2. package/package.json +3 -2
package/lib/paytr.js CHANGED
@@ -13,6 +13,7 @@ class PayTR {
13
13
  this.merchantId = config.merchantId;
14
14
  this.merchantKey = config.merchantKey;
15
15
  this.merchantSalt = config.merchantSalt;
16
+ this.debug_on = String(config?.debug_on) || '0';
16
17
  }
17
18
 
18
19
  async createPayment(paymentDetails) {
@@ -44,6 +45,7 @@ class PayTR {
44
45
  expiry_date: paymentDetails?.expiry_date,
45
46
  get_qr: '1',
46
47
  max_count: Number(paymentDetails?.max_count) || '1',
48
+ debug_on: this.debug_on
47
49
  };
48
50
 
49
51
  let optionalData = ['email', 'callback_link', 'callback_id'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quickpos",
3
- "version": "1.0.904",
3
+ "version": "1.0.905",
4
4
  "main": "app.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -43,6 +43,7 @@
43
43
  "axios": "^1.7.2",
44
44
  "crypto": "^1.0.1",
45
45
  "express": "^4.19.2",
46
- "jssha": "^3.3.1"
46
+ "jssha": "^3.3.1",
47
+ "payu-websdk": "^1.2.0"
47
48
  }
48
49
  }