@salla.sa/applepay 2.14.258 → 2.14.260

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/package.json +2 -2
  2. package/src/index.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/applepay",
3
- "version": "2.14.258",
3
+ "version": "2.14.260",
4
4
  "description": "Salla Apple Pay light",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
@@ -26,5 +26,5 @@
26
26
  "dependencies": {
27
27
  "axios": "^1.10.0"
28
28
  },
29
- "gitHead": "2d836341b2ae605dde411b3a31b6fa9f12a04406"
29
+ "gitHead": "f5a1fa879825fafd3e4f7bb0442b8cd4b2ffac4a"
30
30
  }
package/src/index.js CHANGED
@@ -43,6 +43,7 @@ window.SallaApplePay = {
43
43
  total: undefined,
44
44
  request: undefined,
45
45
  id: undefined,
46
+ countryCode: null,
46
47
  init: function () {
47
48
  document.removeEventListener('payments::apple-pay.start-transaction', SallaApplePay.startSession);
48
49
  Salla.event.addEventListener('payments::apple-pay.start-transaction', SallaApplePay.startSession);
@@ -117,7 +118,7 @@ window.SallaApplePay = {
117
118
  }
118
119
 
119
120
  SallaApplePay.request = {
120
- countryCode: 'SA',
121
+ countryCode: SallaApplePay.detail.countryCode || 'SA',
121
122
  supportsCouponCode: true,
122
123
  couponCode: '',
123
124
  currencyCode: SallaApplePay.detail.currency || 'SAR',