moyasar-payment-form 2.2.3 → 2.2.5
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/moyasar.css
CHANGED
package/dist/moyasar.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: moyasar-payment-form
|
|
3
|
-
* version: v2.2.
|
|
3
|
+
* version: v2.2.5
|
|
4
4
|
* description: Moyasar payment form utilities
|
|
5
5
|
* author: Jan Jagieła - Railwaymen Team
|
|
6
6
|
* homepage: https://docs.moyasar.com
|
|
@@ -319,7 +319,7 @@ function p(A, t, e, n, r, a) {
|
|
|
319
319
|
if (typeof A == "function" && (o = A.defaultProps)) for (l in o) i[l] === void 0 && (i[l] = o[l]);
|
|
320
320
|
return B.vnode && B.vnode(s), s;
|
|
321
321
|
}
|
|
322
|
-
const st = "2.2.
|
|
322
|
+
const st = "2.2.5", q = lt({});
|
|
323
323
|
var cA, I, WA, wt, hA = 0, re = [], z = B, bt = z.__b, Ct = z.__r, Dt = z.diffed, Mt = z.__c, kt = z.unmount, Bt = z.__;
|
|
324
324
|
function _A(A, t) {
|
|
325
325
|
z.__h && z.__h(I, A, hA || t), hA = 0;
|
|
@@ -1471,7 +1471,14 @@ const hn = () => {
|
|
|
1471
1471
|
const r = (o) => {
|
|
1472
1472
|
if (typeof o != "object" || !e)
|
|
1473
1473
|
return;
|
|
1474
|
-
const l = [
|
|
1474
|
+
const l = [
|
|
1475
|
+
"callback_url",
|
|
1476
|
+
"description",
|
|
1477
|
+
"metadata",
|
|
1478
|
+
"amount",
|
|
1479
|
+
"splits",
|
|
1480
|
+
"publishable_api_key"
|
|
1481
|
+
];
|
|
1475
1482
|
for (const i in o)
|
|
1476
1483
|
if (!l.includes(i))
|
|
1477
1484
|
throw new Error(`Changing ${i} is not allowed!`);
|
|
@@ -2595,7 +2602,7 @@ const hn = () => {
|
|
|
2595
2602
|
n != null && n.manual && (T.manual = !0), n != null && n.save_card && (T.save_card = !0), r && (T.statement_descriptor = r);
|
|
2596
2603
|
function Z(R) {
|
|
2597
2604
|
const { transaction_url: ut } = R.source;
|
|
2598
|
-
ut && (window.location.href = ut);
|
|
2605
|
+
ut && (n == null ? void 0 : n.auto_redirect_3ds) !== !1 && (window.location.href = ut);
|
|
2599
2606
|
}
|
|
2600
2607
|
function eA(R) {
|
|
2601
2608
|
console.error(R);
|
|
@@ -3388,7 +3395,7 @@ function pr({ config: A }) {
|
|
|
3388
3395
|
), !((v = (y = window.google) == null ? void 0 : y.payments) != null && v.api) && A.google_pay && w(
|
|
3389
3396
|
"https://pay.google.com/gp/p/js/pay.js",
|
|
3390
3397
|
() => f((d) => X(S({}, d), { google: !0 }))
|
|
3391
|
-
),
|
|
3398
|
+
), A.apple_pay && w(
|
|
3392
3399
|
"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",
|
|
3393
3400
|
() => f((d) => X(S({}, d), { apple: !0 }))
|
|
3394
3401
|
);
|