@pelcro/react-pelcro-js 3.19.0-beta.5 → 3.19.0-beta.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/index.cjs.js +3 -3
- package/dist/index.esm.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -14468,8 +14468,10 @@ const loadPaymentSDKs = () => {
|
|
|
14468
14468
|
const {
|
|
14469
14469
|
whenUserReady
|
|
14470
14470
|
} = usePelcro.getStore();
|
|
14471
|
+
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
14472
|
+
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
14471
14473
|
whenUserReady(() => {
|
|
14472
|
-
if (!window.Stripe) {
|
|
14474
|
+
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
14473
14475
|
pure_1(window.Pelcro.environment.stripe);
|
|
14474
14476
|
}
|
|
14475
14477
|
});
|
|
@@ -14482,7 +14484,6 @@ const loadPaymentSDKs = () => {
|
|
|
14482
14484
|
}
|
|
14483
14485
|
|
|
14484
14486
|
// Load Vantiv SDKs
|
|
14485
|
-
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
14486
14487
|
if (supportsVantiv) {
|
|
14487
14488
|
if (!window.jQuery) {
|
|
14488
14489
|
window.Pelcro.helpers.loadSDK("https://code.jquery.com/jquery-3.6.0.slim.min.js", "vantiv-jquery-sdk");
|
|
@@ -14496,7 +14497,6 @@ const loadPaymentSDKs = () => {
|
|
|
14496
14497
|
}
|
|
14497
14498
|
|
|
14498
14499
|
// Load Tap SDKs
|
|
14499
|
-
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
14500
14500
|
if (supportsTap) {
|
|
14501
14501
|
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
14502
14502
|
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
package/dist/index.esm.js
CHANGED
|
@@ -14427,8 +14427,10 @@ const loadPaymentSDKs = () => {
|
|
|
14427
14427
|
const {
|
|
14428
14428
|
whenUserReady
|
|
14429
14429
|
} = usePelcro.getStore();
|
|
14430
|
+
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
14431
|
+
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
14430
14432
|
whenUserReady(() => {
|
|
14431
|
-
if (!window.Stripe) {
|
|
14433
|
+
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
14432
14434
|
pure_1(window.Pelcro.environment.stripe);
|
|
14433
14435
|
}
|
|
14434
14436
|
});
|
|
@@ -14441,7 +14443,6 @@ const loadPaymentSDKs = () => {
|
|
|
14441
14443
|
}
|
|
14442
14444
|
|
|
14443
14445
|
// Load Vantiv SDKs
|
|
14444
|
-
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
14445
14446
|
if (supportsVantiv) {
|
|
14446
14447
|
if (!window.jQuery) {
|
|
14447
14448
|
window.Pelcro.helpers.loadSDK("https://code.jquery.com/jquery-3.6.0.slim.min.js", "vantiv-jquery-sdk");
|
|
@@ -14455,7 +14456,6 @@ const loadPaymentSDKs = () => {
|
|
|
14455
14456
|
}
|
|
14456
14457
|
|
|
14457
14458
|
// Load Tap SDKs
|
|
14458
|
-
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
14459
14459
|
if (supportsTap) {
|
|
14460
14460
|
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
14461
14461
|
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|