@paystack/inline-js 2.22.4-dev.2 → 2.22.4-dev.3
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 +2 -10
- package/es/inline.js +2 -10
- package/lib/inline.js +2 -10
- package/package.json +1 -1
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,16 +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
2065
|
this.open({
|
|
2070
2066
|
accessCode: transactionData.access_code,
|
|
2071
|
-
language:
|
|
2067
|
+
language: inlineTransaction.urlParameters.language
|
|
2072
2068
|
}, preload);
|
|
2073
2069
|
}
|
|
2074
2070
|
|
|
@@ -2079,15 +2075,12 @@ var PaystackPop = (function () {
|
|
|
2079
2075
|
|
|
2080
2076
|
if (resumableTransaction) {
|
|
2081
2077
|
resumableTransaction.isActive = true;
|
|
2082
|
-
console.log('here 2', inlineTransaction);
|
|
2083
2078
|
|
|
2084
2079
|
if (!this.isDeprecatedApi) {
|
|
2085
|
-
var _resumableTransaction;
|
|
2086
|
-
|
|
2087
2080
|
// We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
|
|
2088
2081
|
this.open({
|
|
2089
2082
|
accessCode: resumableTransaction.accessCode,
|
|
2090
|
-
language:
|
|
2083
|
+
language: resumableTransaction.urlParameters.language
|
|
2091
2084
|
}, preload);
|
|
2092
2085
|
}
|
|
2093
2086
|
|
|
@@ -2101,7 +2094,6 @@ var PaystackPop = (function () {
|
|
|
2101
2094
|
this.transactions.push(transaction);
|
|
2102
2095
|
|
|
2103
2096
|
if (!this.isDeprecatedApi) {
|
|
2104
|
-
console.log('here 3', inlineTransaction);
|
|
2105
2097
|
this.open(params, preload);
|
|
2106
2098
|
}
|
|
2107
2099
|
|
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,16 +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
2062
|
this.open({
|
|
2067
2063
|
accessCode: transactionData.access_code,
|
|
2068
|
-
language:
|
|
2064
|
+
language: inlineTransaction.urlParameters.language
|
|
2069
2065
|
}, preload);
|
|
2070
2066
|
}
|
|
2071
2067
|
|
|
@@ -2076,15 +2072,12 @@ var Inline = /*#__PURE__*/function () {
|
|
|
2076
2072
|
|
|
2077
2073
|
if (resumableTransaction) {
|
|
2078
2074
|
resumableTransaction.isActive = true;
|
|
2079
|
-
console.log('here 2', inlineTransaction);
|
|
2080
2075
|
|
|
2081
2076
|
if (!this.isDeprecatedApi) {
|
|
2082
|
-
var _resumableTransaction;
|
|
2083
|
-
|
|
2084
2077
|
// We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
|
|
2085
2078
|
this.open({
|
|
2086
2079
|
accessCode: resumableTransaction.accessCode,
|
|
2087
|
-
language:
|
|
2080
|
+
language: resumableTransaction.urlParameters.language
|
|
2088
2081
|
}, preload);
|
|
2089
2082
|
}
|
|
2090
2083
|
|
|
@@ -2098,7 +2091,6 @@ var Inline = /*#__PURE__*/function () {
|
|
|
2098
2091
|
this.transactions.push(transaction);
|
|
2099
2092
|
|
|
2100
2093
|
if (!this.isDeprecatedApi) {
|
|
2101
|
-
console.log('here 3', inlineTransaction);
|
|
2102
2094
|
this.open(params, preload);
|
|
2103
2095
|
}
|
|
2104
2096
|
|
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,16 +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
2064
|
this.open({
|
|
2069
2065
|
accessCode: transactionData.access_code,
|
|
2070
|
-
language:
|
|
2066
|
+
language: inlineTransaction.urlParameters.language
|
|
2071
2067
|
}, preload);
|
|
2072
2068
|
}
|
|
2073
2069
|
|
|
@@ -2078,15 +2074,12 @@ var Inline = /*#__PURE__*/function () {
|
|
|
2078
2074
|
|
|
2079
2075
|
if (resumableTransaction) {
|
|
2080
2076
|
resumableTransaction.isActive = true;
|
|
2081
|
-
console.log('here 2', inlineTransaction);
|
|
2082
2077
|
|
|
2083
2078
|
if (!this.isDeprecatedApi) {
|
|
2084
|
-
var _resumableTransaction;
|
|
2085
|
-
|
|
2086
2079
|
// We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
|
|
2087
2080
|
this.open({
|
|
2088
2081
|
accessCode: resumableTransaction.accessCode,
|
|
2089
|
-
language:
|
|
2082
|
+
language: resumableTransaction.urlParameters.language
|
|
2090
2083
|
}, preload);
|
|
2091
2084
|
}
|
|
2092
2085
|
|
|
@@ -2100,7 +2093,6 @@ var Inline = /*#__PURE__*/function () {
|
|
|
2100
2093
|
this.transactions.push(transaction);
|
|
2101
2094
|
|
|
2102
2095
|
if (!this.isDeprecatedApi) {
|
|
2103
|
-
console.log('here 3', inlineTransaction);
|
|
2104
2096
|
this.open(params, preload);
|
|
2105
2097
|
}
|
|
2106
2098
|
|