@paystack/inline-js 2.20.1-dev.1 → 2.20.2-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
@@ -2044,8 +2044,10 @@ var PaystackPop = (function () {
2044
2044
  this.transactions.push(inlineTransaction);
2045
2045
 
2046
2046
  if (!this.isDeprecatedApi) {
2047
+ // TODO: reintroduce this when we resolve checkout caching issues
2048
+ // this.open({ transactionData }, preload);
2047
2049
  this.open({
2048
- transactionData: transactionData
2050
+ accessCode: transactionData.access_code
2049
2051
  }, preload);
2050
2052
  }
2051
2053
 
@@ -2358,9 +2360,13 @@ var PaystackPop = (function () {
2358
2360
  if (activeTransaction) {
2359
2361
  var checkoutIframe = this.checkoutIframe;
2360
2362
  var urlParameters = activeTransaction.urlParameters,
2361
- response = activeTransaction.response;
2363
+ response = activeTransaction.response; // TODO: reintroduce this when we resolve checkout caching issues
2364
+ // const params = response
2365
+ // ? { transactionData: response }
2366
+ // : urlParameters;
2367
+
2362
2368
  var params = response ? {
2363
- transactionData: response
2369
+ accessCode: response.access_code
2364
2370
  } : urlParameters;
2365
2371
  notifyIframeToUpdateURL({
2366
2372
  checkoutIframe: checkoutIframe,
package/es/inline.js CHANGED
@@ -2041,8 +2041,10 @@ var Inline = /*#__PURE__*/function () {
2041
2041
  this.transactions.push(inlineTransaction);
2042
2042
 
2043
2043
  if (!this.isDeprecatedApi) {
2044
+ // TODO: reintroduce this when we resolve checkout caching issues
2045
+ // this.open({ transactionData }, preload);
2044
2046
  this.open({
2045
- transactionData: transactionData
2047
+ accessCode: transactionData.access_code
2046
2048
  }, preload);
2047
2049
  }
2048
2050
 
@@ -2355,9 +2357,13 @@ var Inline = /*#__PURE__*/function () {
2355
2357
  if (activeTransaction) {
2356
2358
  var checkoutIframe = this.checkoutIframe;
2357
2359
  var urlParameters = activeTransaction.urlParameters,
2358
- response = activeTransaction.response;
2360
+ response = activeTransaction.response; // TODO: reintroduce this when we resolve checkout caching issues
2361
+ // const params = response
2362
+ // ? { transactionData: response }
2363
+ // : urlParameters;
2364
+
2359
2365
  var params = response ? {
2360
- transactionData: response
2366
+ accessCode: response.access_code
2361
2367
  } : urlParameters;
2362
2368
  notifyIframeToUpdateURL({
2363
2369
  checkoutIframe: checkoutIframe,
package/lib/inline.js CHANGED
@@ -2043,8 +2043,10 @@ var Inline = /*#__PURE__*/function () {
2043
2043
  this.transactions.push(inlineTransaction);
2044
2044
 
2045
2045
  if (!this.isDeprecatedApi) {
2046
+ // TODO: reintroduce this when we resolve checkout caching issues
2047
+ // this.open({ transactionData }, preload);
2046
2048
  this.open({
2047
- transactionData: transactionData
2049
+ accessCode: transactionData.access_code
2048
2050
  }, preload);
2049
2051
  }
2050
2052
 
@@ -2357,9 +2359,13 @@ var Inline = /*#__PURE__*/function () {
2357
2359
  if (activeTransaction) {
2358
2360
  var checkoutIframe = this.checkoutIframe;
2359
2361
  var urlParameters = activeTransaction.urlParameters,
2360
- response = activeTransaction.response;
2362
+ response = activeTransaction.response; // TODO: reintroduce this when we resolve checkout caching issues
2363
+ // const params = response
2364
+ // ? { transactionData: response }
2365
+ // : urlParameters;
2366
+
2361
2367
  var params = response ? {
2362
- transactionData: response
2368
+ accessCode: response.access_code
2363
2369
  } : urlParameters;
2364
2370
  notifyIframeToUpdateURL({
2365
2371
  checkoutIframe: checkoutIframe,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/inline-js",
3
- "version": "2.20.1-dev.1",
3
+ "version": "2.20.2-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",