@paystack/inline-js 2.22.4-dev.2 → 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
@@ -1873,7 +1873,6 @@ var PaystackPop = (function () {
1873
1873
  inlineInstance = this;
1874
1874
  var resumableTransaction = findResumableTransaction(this.transactions, params);
1875
1875
  var transaction = resumableTransaction || new InlineTransaction(params);
1876
- console.log('here 4', transaction);
1877
1876
  return new Promise(function (resolve, reject) {
1878
1877
  transaction.requestInline().then(function (response) {
1879
1878
  var canPayWithApplePay = isAppleOS() && canUseApplePay(response.channels);
@@ -2059,17 +2058,13 @@ var PaystackPop = (function () {
2059
2058
 
2060
2059
  if (inlineTransaction && transactionData) {
2061
2060
  this.transactions.push(inlineTransaction);
2062
- console.log('here 1', inlineTransaction);
2063
2061
 
2064
2062
  if (!this.isDeprecatedApi) {
2065
- var _inlineTransaction$ur;
2066
-
2067
2063
  // TODO: reintroduce this when we resolve checkout caching issues
2068
2064
  // this.open({ transactionData }, preload);
2069
- this.open({
2070
- accessCode: transactionData.access_code,
2071
- language: (_inlineTransaction$ur = inlineTransaction.urlParameters) === null || _inlineTransaction$ur === void 0 ? void 0 : _inlineTransaction$ur.language
2072
- }, preload);
2065
+ this.open(_objectSpread2({
2066
+ accessCode: transactionData.access_code
2067
+ }, inlineTransaction.urlParameters), preload);
2073
2068
  }
2074
2069
 
2075
2070
  return inlineTransaction;
@@ -2079,16 +2074,12 @@ var PaystackPop = (function () {
2079
2074
 
2080
2075
  if (resumableTransaction) {
2081
2076
  resumableTransaction.isActive = true;
2082
- console.log('here 2', inlineTransaction);
2083
2077
 
2084
2078
  if (!this.isDeprecatedApi) {
2085
- var _resumableTransaction;
2086
-
2087
2079
  // We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
2088
- this.open({
2089
- accessCode: resumableTransaction.accessCode,
2090
- language: (_resumableTransaction = resumableTransaction.urlParameters) === null || _resumableTransaction === void 0 ? void 0 : _resumableTransaction.language
2091
- }, preload);
2080
+ this.open(_objectSpread2({
2081
+ accessCode: resumableTransaction.accessCode
2082
+ }, resumableTransaction.urlParameters), preload);
2092
2083
  }
2093
2084
 
2094
2085
  return resumableTransaction;
@@ -2101,7 +2092,6 @@ var PaystackPop = (function () {
2101
2092
  this.transactions.push(transaction);
2102
2093
 
2103
2094
  if (!this.isDeprecatedApi) {
2104
- console.log('here 3', inlineTransaction);
2105
2095
  this.open(params, preload);
2106
2096
  }
2107
2097
 
package/es/inline.js CHANGED
@@ -1870,7 +1870,6 @@ var Inline = /*#__PURE__*/function () {
1870
1870
  inlineInstance = this;
1871
1871
  var resumableTransaction = findResumableTransaction(this.transactions, params);
1872
1872
  var transaction = resumableTransaction || new InlineTransaction(params);
1873
- console.log('here 4', transaction);
1874
1873
  return new Promise(function (resolve, reject) {
1875
1874
  transaction.requestInline().then(function (response) {
1876
1875
  var canPayWithApplePay = isAppleOS() && canUseApplePay(response.channels);
@@ -2056,17 +2055,13 @@ var Inline = /*#__PURE__*/function () {
2056
2055
 
2057
2056
  if (inlineTransaction && transactionData) {
2058
2057
  this.transactions.push(inlineTransaction);
2059
- console.log('here 1', inlineTransaction);
2060
2058
 
2061
2059
  if (!this.isDeprecatedApi) {
2062
- var _inlineTransaction$ur;
2063
-
2064
2060
  // TODO: reintroduce this when we resolve checkout caching issues
2065
2061
  // this.open({ transactionData }, preload);
2066
- this.open({
2067
- accessCode: transactionData.access_code,
2068
- language: (_inlineTransaction$ur = inlineTransaction.urlParameters) === null || _inlineTransaction$ur === void 0 ? void 0 : _inlineTransaction$ur.language
2069
- }, preload);
2062
+ this.open(_objectSpread2({
2063
+ accessCode: transactionData.access_code
2064
+ }, inlineTransaction.urlParameters), preload);
2070
2065
  }
2071
2066
 
2072
2067
  return inlineTransaction;
@@ -2076,16 +2071,12 @@ var Inline = /*#__PURE__*/function () {
2076
2071
 
2077
2072
  if (resumableTransaction) {
2078
2073
  resumableTransaction.isActive = true;
2079
- console.log('here 2', inlineTransaction);
2080
2074
 
2081
2075
  if (!this.isDeprecatedApi) {
2082
- var _resumableTransaction;
2083
-
2084
2076
  // We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
2085
- this.open({
2086
- accessCode: resumableTransaction.accessCode,
2087
- language: (_resumableTransaction = resumableTransaction.urlParameters) === null || _resumableTransaction === void 0 ? void 0 : _resumableTransaction.language
2088
- }, preload);
2077
+ this.open(_objectSpread2({
2078
+ accessCode: resumableTransaction.accessCode
2079
+ }, resumableTransaction.urlParameters), preload);
2089
2080
  }
2090
2081
 
2091
2082
  return resumableTransaction;
@@ -2098,7 +2089,6 @@ var Inline = /*#__PURE__*/function () {
2098
2089
  this.transactions.push(transaction);
2099
2090
 
2100
2091
  if (!this.isDeprecatedApi) {
2101
- console.log('here 3', inlineTransaction);
2102
2092
  this.open(params, preload);
2103
2093
  }
2104
2094
 
package/lib/inline.js CHANGED
@@ -1872,7 +1872,6 @@ var Inline = /*#__PURE__*/function () {
1872
1872
  inlineInstance = this;
1873
1873
  var resumableTransaction = findResumableTransaction(this.transactions, params);
1874
1874
  var transaction = resumableTransaction || new InlineTransaction(params);
1875
- console.log('here 4', transaction);
1876
1875
  return new Promise(function (resolve, reject) {
1877
1876
  transaction.requestInline().then(function (response) {
1878
1877
  var canPayWithApplePay = isAppleOS() && canUseApplePay(response.channels);
@@ -2058,17 +2057,13 @@ var Inline = /*#__PURE__*/function () {
2058
2057
 
2059
2058
  if (inlineTransaction && transactionData) {
2060
2059
  this.transactions.push(inlineTransaction);
2061
- console.log('here 1', inlineTransaction);
2062
2060
 
2063
2061
  if (!this.isDeprecatedApi) {
2064
- var _inlineTransaction$ur;
2065
-
2066
2062
  // TODO: reintroduce this when we resolve checkout caching issues
2067
2063
  // this.open({ transactionData }, preload);
2068
- this.open({
2069
- accessCode: transactionData.access_code,
2070
- language: (_inlineTransaction$ur = inlineTransaction.urlParameters) === null || _inlineTransaction$ur === void 0 ? void 0 : _inlineTransaction$ur.language
2071
- }, preload);
2064
+ this.open(_objectSpread2({
2065
+ accessCode: transactionData.access_code
2066
+ }, inlineTransaction.urlParameters), preload);
2072
2067
  }
2073
2068
 
2074
2069
  return inlineTransaction;
@@ -2078,16 +2073,12 @@ var Inline = /*#__PURE__*/function () {
2078
2073
 
2079
2074
  if (resumableTransaction) {
2080
2075
  resumableTransaction.isActive = true;
2081
- console.log('here 2', inlineTransaction);
2082
2076
 
2083
2077
  if (!this.isDeprecatedApi) {
2084
- var _resumableTransaction;
2085
-
2086
2078
  // We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
2087
- this.open({
2088
- accessCode: resumableTransaction.accessCode,
2089
- language: (_resumableTransaction = resumableTransaction.urlParameters) === null || _resumableTransaction === void 0 ? void 0 : _resumableTransaction.language
2090
- }, preload);
2079
+ this.open(_objectSpread2({
2080
+ accessCode: resumableTransaction.accessCode
2081
+ }, resumableTransaction.urlParameters), preload);
2091
2082
  }
2092
2083
 
2093
2084
  return resumableTransaction;
@@ -2100,7 +2091,6 @@ var Inline = /*#__PURE__*/function () {
2100
2091
  this.transactions.push(transaction);
2101
2092
 
2102
2093
  if (!this.isDeprecatedApi) {
2103
- console.log('here 3', inlineTransaction);
2104
2094
  this.open(params, preload);
2105
2095
  }
2106
2096
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/inline-js",
3
- "version": "2.22.4-dev.2",
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",