@paystack/inline-js 2.22.4-dev.4 → 2.22.4-dev.5

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