@paystack/inline-js 2.20.0-dev.3 → 2.20.0-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 +5 -3
- package/es/inline.js +5 -3
- package/lib/inline.js +5 -3
- package/package.json +1 -1
package/dist/inline.js
CHANGED
|
@@ -1896,7 +1896,6 @@ var PaystackPop = (function () {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
}, response.merchant_id).then(function () {
|
|
1898
1898
|
inlineInstance.registerPaymentRequestEventListeners();
|
|
1899
|
-
inlineInstance.openPreCheckoutModal();
|
|
1900
1899
|
}).catch(function () {
|
|
1901
1900
|
/**
|
|
1902
1901
|
* If an error occurs when mounting the apple pay button,
|
|
@@ -1906,7 +1905,6 @@ var PaystackPop = (function () {
|
|
|
1906
1905
|
*/
|
|
1907
1906
|
if (canPayWithVault) {
|
|
1908
1907
|
removePreCheckoutModalPaymentRequestContainer(inlineInstance.preCheckoutModal);
|
|
1909
|
-
inlineInstance.openPreCheckoutModal();
|
|
1910
1908
|
} else {
|
|
1911
1909
|
inlineInstance.closePreCheckoutModal();
|
|
1912
1910
|
inlineInstance.animateCheckoutIn();
|
|
@@ -1915,7 +1913,6 @@ var PaystackPop = (function () {
|
|
|
1915
1913
|
resolve(transaction);
|
|
1916
1914
|
});
|
|
1917
1915
|
} else {
|
|
1918
|
-
inlineInstance.openPreCheckoutModal();
|
|
1919
1916
|
resolve(transaction);
|
|
1920
1917
|
}
|
|
1921
1918
|
}
|
|
@@ -2355,6 +2352,11 @@ var PaystackPop = (function () {
|
|
|
2355
2352
|
|
|
2356
2353
|
case 'loaded:transaction':
|
|
2357
2354
|
hideLoader(this.backgroundIframe);
|
|
2355
|
+
|
|
2356
|
+
if (this.preCheckoutModal) {
|
|
2357
|
+
this.openPreCheckoutModal();
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2358
2360
|
activeTransaction.onLoad(eventData);
|
|
2359
2361
|
break;
|
|
2360
2362
|
|
package/es/inline.js
CHANGED
|
@@ -1893,7 +1893,6 @@ var Inline = /*#__PURE__*/function () {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
}, response.merchant_id).then(function () {
|
|
1895
1895
|
inlineInstance.registerPaymentRequestEventListeners();
|
|
1896
|
-
inlineInstance.openPreCheckoutModal();
|
|
1897
1896
|
}).catch(function () {
|
|
1898
1897
|
/**
|
|
1899
1898
|
* If an error occurs when mounting the apple pay button,
|
|
@@ -1903,7 +1902,6 @@ var Inline = /*#__PURE__*/function () {
|
|
|
1903
1902
|
*/
|
|
1904
1903
|
if (canPayWithVault) {
|
|
1905
1904
|
removePreCheckoutModalPaymentRequestContainer(inlineInstance.preCheckoutModal);
|
|
1906
|
-
inlineInstance.openPreCheckoutModal();
|
|
1907
1905
|
} else {
|
|
1908
1906
|
inlineInstance.closePreCheckoutModal();
|
|
1909
1907
|
inlineInstance.animateCheckoutIn();
|
|
@@ -1912,7 +1910,6 @@ var Inline = /*#__PURE__*/function () {
|
|
|
1912
1910
|
resolve(transaction);
|
|
1913
1911
|
});
|
|
1914
1912
|
} else {
|
|
1915
|
-
inlineInstance.openPreCheckoutModal();
|
|
1916
1913
|
resolve(transaction);
|
|
1917
1914
|
}
|
|
1918
1915
|
}
|
|
@@ -2352,6 +2349,11 @@ var Inline = /*#__PURE__*/function () {
|
|
|
2352
2349
|
|
|
2353
2350
|
case 'loaded:transaction':
|
|
2354
2351
|
hideLoader(this.backgroundIframe);
|
|
2352
|
+
|
|
2353
|
+
if (this.preCheckoutModal) {
|
|
2354
|
+
this.openPreCheckoutModal();
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2355
2357
|
activeTransaction.onLoad(eventData);
|
|
2356
2358
|
break;
|
|
2357
2359
|
|
package/lib/inline.js
CHANGED
|
@@ -1895,7 +1895,6 @@ var Inline = /*#__PURE__*/function () {
|
|
|
1895
1895
|
}
|
|
1896
1896
|
}, response.merchant_id).then(function () {
|
|
1897
1897
|
inlineInstance.registerPaymentRequestEventListeners();
|
|
1898
|
-
inlineInstance.openPreCheckoutModal();
|
|
1899
1898
|
}).catch(function () {
|
|
1900
1899
|
/**
|
|
1901
1900
|
* If an error occurs when mounting the apple pay button,
|
|
@@ -1905,7 +1904,6 @@ var Inline = /*#__PURE__*/function () {
|
|
|
1905
1904
|
*/
|
|
1906
1905
|
if (canPayWithVault) {
|
|
1907
1906
|
removePreCheckoutModalPaymentRequestContainer(inlineInstance.preCheckoutModal);
|
|
1908
|
-
inlineInstance.openPreCheckoutModal();
|
|
1909
1907
|
} else {
|
|
1910
1908
|
inlineInstance.closePreCheckoutModal();
|
|
1911
1909
|
inlineInstance.animateCheckoutIn();
|
|
@@ -1914,7 +1912,6 @@ var Inline = /*#__PURE__*/function () {
|
|
|
1914
1912
|
resolve(transaction);
|
|
1915
1913
|
});
|
|
1916
1914
|
} else {
|
|
1917
|
-
inlineInstance.openPreCheckoutModal();
|
|
1918
1915
|
resolve(transaction);
|
|
1919
1916
|
}
|
|
1920
1917
|
}
|
|
@@ -2354,6 +2351,11 @@ var Inline = /*#__PURE__*/function () {
|
|
|
2354
2351
|
|
|
2355
2352
|
case 'loaded:transaction':
|
|
2356
2353
|
hideLoader(this.backgroundIframe);
|
|
2354
|
+
|
|
2355
|
+
if (this.preCheckoutModal) {
|
|
2356
|
+
this.openPreCheckoutModal();
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2357
2359
|
activeTransaction.onLoad(eventData);
|
|
2358
2360
|
break;
|
|
2359
2361
|
|