@pelcro/react-pelcro-js 3.21.3 → 3.21.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/index.cjs.js +7 -4
- package/dist/index.esm.js +7 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -16364,7 +16364,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
16364
16364
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
16365
16365
|
if (isUsingExistingPaymentMethod) {
|
|
16366
16366
|
// no need to create a new source using tap
|
|
16367
|
-
return handleTapPayment(null);
|
|
16367
|
+
return handleTapPayment(null, state);
|
|
16368
16368
|
}
|
|
16369
16369
|
if (!tapInstanceRef.current) {
|
|
16370
16370
|
return console.error("Tap sdk script wasn't loaded, you need to load tap sdk before rendering the tap payment flow");
|
|
@@ -16649,7 +16649,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
16649
16649
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
16650
16650
|
if (isUsingExistingPaymentMethod) {
|
|
16651
16651
|
// no need to create a new source using vantiv
|
|
16652
|
-
return handleVantivPayment(null);
|
|
16652
|
+
return handleVantivPayment(null, state.couponCode);
|
|
16653
16653
|
}
|
|
16654
16654
|
if (!vantivInstanceRef.current) {
|
|
16655
16655
|
return console.error("Vantiv sdk script wasn't loaded, you need to load vantiv sdk before rendering the vantiv payment flow");
|
|
@@ -17759,7 +17759,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17759
17759
|
isLoading: true
|
|
17760
17760
|
}, (state, dispatch) => {
|
|
17761
17761
|
if (getSiteCardProcessor() === "vantiv") {
|
|
17762
|
-
return submitUsingVantiv();
|
|
17762
|
+
return submitUsingVantiv(state);
|
|
17763
17763
|
}
|
|
17764
17764
|
if (getSiteCardProcessor() === "tap") {
|
|
17765
17765
|
return submitUsingTap(state);
|
|
@@ -17917,11 +17917,12 @@ const PaymentMethodContainer = props => {
|
|
|
17917
17917
|
}, /*#__PURE__*/React__default['default'].createElement(es_11, null, /*#__PURE__*/React__default['default'].createElement(UnwrappedForm, Object.assign({
|
|
17918
17918
|
store: store$k
|
|
17919
17919
|
}, props))));
|
|
17920
|
-
} else {
|
|
17920
|
+
} else if (cardProcessor !== "stripe") {
|
|
17921
17921
|
return /*#__PURE__*/React__default['default'].createElement(PaymentMethodContainerWithoutStripe, Object.assign({
|
|
17922
17922
|
store: store$k
|
|
17923
17923
|
}, props));
|
|
17924
17924
|
}
|
|
17925
|
+
return null;
|
|
17925
17926
|
};
|
|
17926
17927
|
|
|
17927
17928
|
const StripeInputStyle = {
|
|
@@ -21394,6 +21395,7 @@ const AddressCreateContainer = _ref => {
|
|
|
21394
21395
|
first_name: firstName,
|
|
21395
21396
|
last_name: lastName,
|
|
21396
21397
|
line1: line1,
|
|
21398
|
+
line2: line2,
|
|
21397
21399
|
city: city,
|
|
21398
21400
|
state: state,
|
|
21399
21401
|
country: country,
|
|
@@ -22221,6 +22223,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
22221
22223
|
first_name: firstName,
|
|
22222
22224
|
last_name: lastName,
|
|
22223
22225
|
line1: line1,
|
|
22226
|
+
line2: line2,
|
|
22224
22227
|
city: city,
|
|
22225
22228
|
state: state,
|
|
22226
22229
|
country: country,
|
package/dist/index.esm.js
CHANGED
|
@@ -16334,7 +16334,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
16334
16334
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
16335
16335
|
if (isUsingExistingPaymentMethod) {
|
|
16336
16336
|
// no need to create a new source using tap
|
|
16337
|
-
return handleTapPayment(null);
|
|
16337
|
+
return handleTapPayment(null, state);
|
|
16338
16338
|
}
|
|
16339
16339
|
if (!tapInstanceRef.current) {
|
|
16340
16340
|
return console.error("Tap sdk script wasn't loaded, you need to load tap sdk before rendering the tap payment flow");
|
|
@@ -16619,7 +16619,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
16619
16619
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
16620
16620
|
if (isUsingExistingPaymentMethod) {
|
|
16621
16621
|
// no need to create a new source using vantiv
|
|
16622
|
-
return handleVantivPayment(null);
|
|
16622
|
+
return handleVantivPayment(null, state.couponCode);
|
|
16623
16623
|
}
|
|
16624
16624
|
if (!vantivInstanceRef.current) {
|
|
16625
16625
|
return console.error("Vantiv sdk script wasn't loaded, you need to load vantiv sdk before rendering the vantiv payment flow");
|
|
@@ -17729,7 +17729,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
17729
17729
|
isLoading: true
|
|
17730
17730
|
}, (state, dispatch) => {
|
|
17731
17731
|
if (getSiteCardProcessor() === "vantiv") {
|
|
17732
|
-
return submitUsingVantiv();
|
|
17732
|
+
return submitUsingVantiv(state);
|
|
17733
17733
|
}
|
|
17734
17734
|
if (getSiteCardProcessor() === "tap") {
|
|
17735
17735
|
return submitUsingTap(state);
|
|
@@ -17887,11 +17887,12 @@ const PaymentMethodContainer = props => {
|
|
|
17887
17887
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
17888
17888
|
store: store$k
|
|
17889
17889
|
}, props))));
|
|
17890
|
-
} else {
|
|
17890
|
+
} else if (cardProcessor !== "stripe") {
|
|
17891
17891
|
return /*#__PURE__*/React__default.createElement(PaymentMethodContainerWithoutStripe, Object.assign({
|
|
17892
17892
|
store: store$k
|
|
17893
17893
|
}, props));
|
|
17894
17894
|
}
|
|
17895
|
+
return null;
|
|
17895
17896
|
};
|
|
17896
17897
|
|
|
17897
17898
|
const StripeInputStyle = {
|
|
@@ -21364,6 +21365,7 @@ const AddressCreateContainer = _ref => {
|
|
|
21364
21365
|
first_name: firstName,
|
|
21365
21366
|
last_name: lastName,
|
|
21366
21367
|
line1: line1,
|
|
21368
|
+
line2: line2,
|
|
21367
21369
|
city: city,
|
|
21368
21370
|
state: state,
|
|
21369
21371
|
country: country,
|
|
@@ -22191,6 +22193,7 @@ const AddressUpdateContainer = _ref => {
|
|
|
22191
22193
|
first_name: firstName,
|
|
22192
22194
|
last_name: lastName,
|
|
22193
22195
|
line1: line1,
|
|
22196
|
+
line2: line2,
|
|
22194
22197
|
city: city,
|
|
22195
22198
|
state: state,
|
|
22196
22199
|
country: country,
|