@paystack/inline-js 2.15.0-dev.4 → 2.15.0-dev.6
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 +8 -2
- package/es/inline.js +8 -2
- package/lib/inline.js +8 -2
- package/package.json +1 -1
package/dist/inline.js
CHANGED
|
@@ -832,9 +832,15 @@ var PaystackPop = (function () {
|
|
|
832
832
|
label = _ref4.label;
|
|
833
833
|
|
|
834
834
|
var applePayPaymentInfo = document.createElement('div');
|
|
835
|
-
var formattedAmount = new Intl.NumberFormat('en'
|
|
835
|
+
var formattedAmount = new Intl.NumberFormat('en', {
|
|
836
|
+
style: 'currency',
|
|
837
|
+
currency: currency,
|
|
838
|
+
currencyDisplay: 'code',
|
|
839
|
+
maximumFractionDigits: 2,
|
|
840
|
+
minimumFractionDigits: 0
|
|
841
|
+
}).format(amount / 100);
|
|
836
842
|
applePayPaymentInfo.classList.add('payment-info');
|
|
837
|
-
applePayPaymentInfo.innerHTML = "<img class=\"merchant-logo\" src=\"".concat(merchantLogo, "\" alt=\"").concat(merchantName, " Logo\">\n <div class=\"customer-info\">\n <div class=\"customer-email\">").concat(label || email, "</div>\n <div class=\"transaction-amount\">Pay <span class=\"amount\">").concat(
|
|
843
|
+
applePayPaymentInfo.innerHTML = "<img class=\"merchant-logo\" src=\"".concat(merchantLogo, "\" alt=\"").concat(merchantName, " Logo\">\n <div class=\"customer-info\">\n <div class=\"customer-email\">").concat(label || email, "</div>\n <div class=\"transaction-amount\">Pay <span class=\"amount\">").concat(formattedAmount, "</span></div>\n </div>");
|
|
838
844
|
content.appendChild(applePayPaymentInfo);
|
|
839
845
|
content.innerHTML += applePayCloseButton;
|
|
840
846
|
var wrapper = document.createElement('div');
|
package/es/inline.js
CHANGED
|
@@ -829,9 +829,15 @@ function mountPreCheckoutModal(id, transaction) {
|
|
|
829
829
|
label = _ref4.label;
|
|
830
830
|
|
|
831
831
|
var applePayPaymentInfo = document.createElement('div');
|
|
832
|
-
var formattedAmount = new Intl.NumberFormat('en'
|
|
832
|
+
var formattedAmount = new Intl.NumberFormat('en', {
|
|
833
|
+
style: 'currency',
|
|
834
|
+
currency: currency,
|
|
835
|
+
currencyDisplay: 'code',
|
|
836
|
+
maximumFractionDigits: 2,
|
|
837
|
+
minimumFractionDigits: 0
|
|
838
|
+
}).format(amount / 100);
|
|
833
839
|
applePayPaymentInfo.classList.add('payment-info');
|
|
834
|
-
applePayPaymentInfo.innerHTML = "<img class=\"merchant-logo\" src=\"".concat(merchantLogo, "\" alt=\"").concat(merchantName, " Logo\">\n <div class=\"customer-info\">\n <div class=\"customer-email\">").concat(label || email, "</div>\n <div class=\"transaction-amount\">Pay <span class=\"amount\">").concat(
|
|
840
|
+
applePayPaymentInfo.innerHTML = "<img class=\"merchant-logo\" src=\"".concat(merchantLogo, "\" alt=\"").concat(merchantName, " Logo\">\n <div class=\"customer-info\">\n <div class=\"customer-email\">").concat(label || email, "</div>\n <div class=\"transaction-amount\">Pay <span class=\"amount\">").concat(formattedAmount, "</span></div>\n </div>");
|
|
835
841
|
content.appendChild(applePayPaymentInfo);
|
|
836
842
|
content.innerHTML += applePayCloseButton;
|
|
837
843
|
var wrapper = document.createElement('div');
|
package/lib/inline.js
CHANGED
|
@@ -831,9 +831,15 @@ function mountPreCheckoutModal(id, transaction) {
|
|
|
831
831
|
label = _ref4.label;
|
|
832
832
|
|
|
833
833
|
var applePayPaymentInfo = document.createElement('div');
|
|
834
|
-
var formattedAmount = new Intl.NumberFormat('en'
|
|
834
|
+
var formattedAmount = new Intl.NumberFormat('en', {
|
|
835
|
+
style: 'currency',
|
|
836
|
+
currency: currency,
|
|
837
|
+
currencyDisplay: 'code',
|
|
838
|
+
maximumFractionDigits: 2,
|
|
839
|
+
minimumFractionDigits: 0
|
|
840
|
+
}).format(amount / 100);
|
|
835
841
|
applePayPaymentInfo.classList.add('payment-info');
|
|
836
|
-
applePayPaymentInfo.innerHTML = "<img class=\"merchant-logo\" src=\"".concat(merchantLogo, "\" alt=\"").concat(merchantName, " Logo\">\n <div class=\"customer-info\">\n <div class=\"customer-email\">").concat(label || email, "</div>\n <div class=\"transaction-amount\">Pay <span class=\"amount\">").concat(
|
|
842
|
+
applePayPaymentInfo.innerHTML = "<img class=\"merchant-logo\" src=\"".concat(merchantLogo, "\" alt=\"").concat(merchantName, " Logo\">\n <div class=\"customer-info\">\n <div class=\"customer-email\">").concat(label || email, "</div>\n <div class=\"transaction-amount\">Pay <span class=\"amount\">").concat(formattedAmount, "</span></div>\n </div>");
|
|
837
843
|
content.appendChild(applePayPaymentInfo);
|
|
838
844
|
content.innerHTML += applePayCloseButton;
|
|
839
845
|
var wrapper = document.createElement('div');
|