@paystack/inline-js 2.22.3-dev.1 → 2.22.4-dev.1

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.
package/dist/inline.js CHANGED
@@ -2060,10 +2060,13 @@ var PaystackPop = (function () {
2060
2060
  this.transactions.push(inlineTransaction);
2061
2061
 
2062
2062
  if (!this.isDeprecatedApi) {
2063
+ var _inlineTransaction$ur;
2064
+
2063
2065
  // TODO: reintroduce this when we resolve checkout caching issues
2064
2066
  // this.open({ transactionData }, preload);
2065
2067
  this.open({
2066
- accessCode: transactionData.access_code
2068
+ accessCode: transactionData.access_code,
2069
+ language: (_inlineTransaction$ur = inlineTransaction.urlParameters) === null || _inlineTransaction$ur === void 0 ? void 0 : _inlineTransaction$ur.language
2067
2070
  }, preload);
2068
2071
  }
2069
2072
 
@@ -2076,9 +2079,12 @@ var PaystackPop = (function () {
2076
2079
  resumableTransaction.isActive = true;
2077
2080
 
2078
2081
  if (!this.isDeprecatedApi) {
2082
+ var _resumableTransaction;
2083
+
2079
2084
  // We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
2080
2085
  this.open({
2081
- accessCode: resumableTransaction.accessCode
2086
+ accessCode: resumableTransaction.accessCode,
2087
+ language: (_resumableTransaction = resumableTransaction.urlParameters) === null || _resumableTransaction === void 0 ? void 0 : _resumableTransaction.language
2082
2088
  }, preload);
2083
2089
  }
2084
2090
 
package/es/inline.js CHANGED
@@ -2057,10 +2057,13 @@ var Inline = /*#__PURE__*/function () {
2057
2057
  this.transactions.push(inlineTransaction);
2058
2058
 
2059
2059
  if (!this.isDeprecatedApi) {
2060
+ var _inlineTransaction$ur;
2061
+
2060
2062
  // TODO: reintroduce this when we resolve checkout caching issues
2061
2063
  // this.open({ transactionData }, preload);
2062
2064
  this.open({
2063
- accessCode: transactionData.access_code
2065
+ accessCode: transactionData.access_code,
2066
+ language: (_inlineTransaction$ur = inlineTransaction.urlParameters) === null || _inlineTransaction$ur === void 0 ? void 0 : _inlineTransaction$ur.language
2064
2067
  }, preload);
2065
2068
  }
2066
2069
 
@@ -2073,9 +2076,12 @@ var Inline = /*#__PURE__*/function () {
2073
2076
  resumableTransaction.isActive = true;
2074
2077
 
2075
2078
  if (!this.isDeprecatedApi) {
2079
+ var _resumableTransaction;
2080
+
2076
2081
  // We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
2077
2082
  this.open({
2078
- accessCode: resumableTransaction.accessCode
2083
+ accessCode: resumableTransaction.accessCode,
2084
+ language: (_resumableTransaction = resumableTransaction.urlParameters) === null || _resumableTransaction === void 0 ? void 0 : _resumableTransaction.language
2079
2085
  }, preload);
2080
2086
  }
2081
2087
 
package/lib/inline.js CHANGED
@@ -2059,10 +2059,13 @@ var Inline = /*#__PURE__*/function () {
2059
2059
  this.transactions.push(inlineTransaction);
2060
2060
 
2061
2061
  if (!this.isDeprecatedApi) {
2062
+ var _inlineTransaction$ur;
2063
+
2062
2064
  // TODO: reintroduce this when we resolve checkout caching issues
2063
2065
  // this.open({ transactionData }, preload);
2064
2066
  this.open({
2065
- accessCode: transactionData.access_code
2067
+ accessCode: transactionData.access_code,
2068
+ language: (_inlineTransaction$ur = inlineTransaction.urlParameters) === null || _inlineTransaction$ur === void 0 ? void 0 : _inlineTransaction$ur.language
2066
2069
  }, preload);
2067
2070
  }
2068
2071
 
@@ -2075,9 +2078,12 @@ var Inline = /*#__PURE__*/function () {
2075
2078
  resumableTransaction.isActive = true;
2076
2079
 
2077
2080
  if (!this.isDeprecatedApi) {
2081
+ var _resumableTransaction;
2082
+
2078
2083
  // We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
2079
2084
  this.open({
2080
- accessCode: resumableTransaction.accessCode
2085
+ accessCode: resumableTransaction.accessCode,
2086
+ language: (_resumableTransaction = resumableTransaction.urlParameters) === null || _resumableTransaction === void 0 ? void 0 : _resumableTransaction.language
2081
2087
  }, preload);
2082
2088
  }
2083
2089
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/inline-js",
3
- "version": "2.22.3-dev.1",
3
+ "version": "2.22.4-dev.1",
4
4
  "description": "Client-side library to load the Paystack checkout form",
5
5
  "main": "lib/inline.js",
6
6
  "module": "es/inline.js",