@paystack/inline-js 2.15.0-dev.5 → 2.15.0-dev.7

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
@@ -545,6 +545,7 @@ var PaystackPop = (function () {
545
545
  iframe.src = "".concat(config.checkoutUrl, "popup");
546
546
  iframe.style.cssText = checkoutCSS;
547
547
  iframe.setAttribute('allowpaymentrequest', 'true');
548
+ iframe.setAttribute('allow', 'payment');
548
549
  document.body.appendChild(iframe);
549
550
  return iframe;
550
551
  }
@@ -835,6 +836,7 @@ var PaystackPop = (function () {
835
836
  var formattedAmount = new Intl.NumberFormat('en', {
836
837
  style: 'currency',
837
838
  currency: currency,
839
+ currencyDisplay: 'code',
838
840
  maximumFractionDigits: 2,
839
841
  minimumFractionDigits: 0
840
842
  }).format(amount / 100);
package/es/inline.js CHANGED
@@ -542,6 +542,7 @@ function mountCheckoutIframe(id) {
542
542
  iframe.src = "".concat(config.checkoutUrl, "popup");
543
543
  iframe.style.cssText = checkoutCSS;
544
544
  iframe.setAttribute('allowpaymentrequest', 'true');
545
+ iframe.setAttribute('allow', 'payment');
545
546
  document.body.appendChild(iframe);
546
547
  return iframe;
547
548
  }
@@ -832,6 +833,7 @@ function mountPreCheckoutModal(id, transaction) {
832
833
  var formattedAmount = new Intl.NumberFormat('en', {
833
834
  style: 'currency',
834
835
  currency: currency,
836
+ currencyDisplay: 'code',
835
837
  maximumFractionDigits: 2,
836
838
  minimumFractionDigits: 0
837
839
  }).format(amount / 100);
package/lib/inline.js CHANGED
@@ -544,6 +544,7 @@ function mountCheckoutIframe(id) {
544
544
  iframe.src = "".concat(config.checkoutUrl, "popup");
545
545
  iframe.style.cssText = checkoutCSS;
546
546
  iframe.setAttribute('allowpaymentrequest', 'true');
547
+ iframe.setAttribute('allow', 'payment');
547
548
  document.body.appendChild(iframe);
548
549
  return iframe;
549
550
  }
@@ -834,6 +835,7 @@ function mountPreCheckoutModal(id, transaction) {
834
835
  var formattedAmount = new Intl.NumberFormat('en', {
835
836
  style: 'currency',
836
837
  currency: currency,
838
+ currencyDisplay: 'code',
837
839
  maximumFractionDigits: 2,
838
840
  minimumFractionDigits: 0
839
841
  }).format(amount / 100);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/inline-js",
3
- "version": "2.15.0-dev.5",
3
+ "version": "2.15.0-dev.7",
4
4
  "description": "Client-side library to load the Paystack checkout form",
5
5
  "main": "lib/inline.js",
6
6
  "module": "es/inline.js",