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

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