@paynext/sdk 0.0.16 → 0.0.17
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/index.es.js +6 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8968,19 +8968,19 @@ const Ap = "_paypalBtn_2m8yd_1", Sp = {
|
|
|
8968
8968
|
i && t(i);
|
|
8969
8969
|
}
|
|
8970
8970
|
}
|
|
8971
|
-
) }) }), jp = (e) => !e ||
|
|
8971
|
+
) }) }), jp = (e) => !e || typeof e.amount != "number" || !e.currency || !e.country || !e.merchant_id || e.checkout_config && !e.checkout_config?.find(({ is_active: n, type: r }) => n && r === "google-pay") ? null : {
|
|
8972
8972
|
amount: e.amount,
|
|
8973
8973
|
currency: e.currency,
|
|
8974
8974
|
country: e.country,
|
|
8975
8975
|
merchantId: e.merchant_id,
|
|
8976
8976
|
lineItems: []
|
|
8977
|
-
}, Vp = (e) => !e ||
|
|
8977
|
+
}, Vp = (e) => !e || typeof e.amount != "number" || !e.currency || !e.country || !e.merchant_id || e.checkout_config && !e.checkout_config?.find(({ is_active: n, type: r }) => n && r === "apple-pay") ? null : {
|
|
8978
8978
|
amount: e.amount,
|
|
8979
8979
|
currency: e.currency,
|
|
8980
8980
|
country: e.country,
|
|
8981
8981
|
merchantId: e.merchant_id,
|
|
8982
8982
|
lineItems: e.apple_pay_info?.line_items || []
|
|
8983
|
-
}, Rp = (e) => !e ||
|
|
8983
|
+
}, Rp = (e) => !e || typeof e.amount != "number" || !e.currency || !e.country || !e.merchant_id || e.checkout_config && !e.checkout_config.find(({ is_active: n, type: r }) => n && r === "paypal") ? null : {
|
|
8984
8984
|
intent: "TOKENIZE",
|
|
8985
8985
|
purchase_units: [
|
|
8986
8986
|
{
|
|
@@ -9009,7 +9009,9 @@ const Ap = "_paypalBtn_2m8yd_1", Sp = {
|
|
|
9009
9009
|
return t;
|
|
9010
9010
|
}
|
|
9011
9011
|
}, []), Ip = ({ onError: e, onSubmit: t, onReset: n, clientToken: r }) => {
|
|
9012
|
-
const i = Tl(), s = xl(), [a, o] = S(!1), [l, u] = S(!1), [c, d] = S(!1), [p, f] = S(!1), [m, g] = S(!1)
|
|
9012
|
+
const i = Tl(), s = xl(), [a, o] = S(!1), [l, u] = S(!1), [c, d] = S(!1), [p, f] = S(!1), [m, g] = S(!1);
|
|
9013
|
+
console.log({ transaction: s });
|
|
9014
|
+
const { googlePay: v, applePay: y, paypal: T } = fe(
|
|
9013
9015
|
() => ({
|
|
9014
9016
|
googlePay: jp(s),
|
|
9015
9017
|
applePay: Vp(s),
|