@pelcro/react-pelcro-js 3.26.0-beta.38 → 3.26.0-beta.39
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 +19 -11
- package/dist/index.esm.js +19 -11
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18942,15 +18942,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18942
18942
|
token: paymentRequest,
|
|
18943
18943
|
gateway: "vantiv"
|
|
18944
18944
|
}, (err, res) => {
|
|
18945
|
-
dispatch({
|
|
18946
|
-
type: DISABLE_SUBMIT,
|
|
18947
|
-
payload: false
|
|
18948
|
-
});
|
|
18949
|
-
dispatch({
|
|
18950
|
-
type: LOADING,
|
|
18951
|
-
payload: false
|
|
18952
|
-
});
|
|
18953
18945
|
if (err) {
|
|
18946
|
+
dispatch({
|
|
18947
|
+
type: DISABLE_SUBMIT,
|
|
18948
|
+
payload: false
|
|
18949
|
+
});
|
|
18950
|
+
dispatch({
|
|
18951
|
+
type: LOADING,
|
|
18952
|
+
payload: false
|
|
18953
|
+
});
|
|
18954
18954
|
onFailure(err);
|
|
18955
18955
|
return dispatch({
|
|
18956
18956
|
type: SHOW_ALERT,
|
|
@@ -18966,6 +18966,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18966
18966
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
18967
18967
|
payment_method_id: paymentMethodId
|
|
18968
18968
|
}, (err, res) => {
|
|
18969
|
+
dispatch({
|
|
18970
|
+
type: DISABLE_SUBMIT,
|
|
18971
|
+
payload: false
|
|
18972
|
+
});
|
|
18973
|
+
dispatch({
|
|
18974
|
+
type: LOADING,
|
|
18975
|
+
payload: false
|
|
18976
|
+
});
|
|
18969
18977
|
if (err) {
|
|
18970
18978
|
onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
18971
18979
|
return dispatch({
|
|
@@ -18978,7 +18986,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18978
18986
|
}
|
|
18979
18987
|
onSuccess(res);
|
|
18980
18988
|
});
|
|
18981
|
-
},
|
|
18989
|
+
}, 2000);
|
|
18982
18990
|
}
|
|
18983
18991
|
});
|
|
18984
18992
|
}
|
|
@@ -20031,7 +20039,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20031
20039
|
}
|
|
20032
20040
|
onSuccess(res);
|
|
20033
20041
|
});
|
|
20034
|
-
},
|
|
20042
|
+
}, 2000);
|
|
20035
20043
|
}
|
|
20036
20044
|
});
|
|
20037
20045
|
});
|
|
@@ -28833,7 +28841,7 @@ const PaymentMethodDeleteContainer = _ref => {
|
|
|
28833
28841
|
}
|
|
28834
28842
|
setTimeout(() => {
|
|
28835
28843
|
deletePaymentMethod();
|
|
28836
|
-
},
|
|
28844
|
+
}, 2000);
|
|
28837
28845
|
});
|
|
28838
28846
|
};
|
|
28839
28847
|
const deletePaymentMethod = () => {
|
package/dist/index.esm.js
CHANGED
|
@@ -18912,15 +18912,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18912
18912
|
token: paymentRequest,
|
|
18913
18913
|
gateway: "vantiv"
|
|
18914
18914
|
}, (err, res) => {
|
|
18915
|
-
dispatch({
|
|
18916
|
-
type: DISABLE_SUBMIT,
|
|
18917
|
-
payload: false
|
|
18918
|
-
});
|
|
18919
|
-
dispatch({
|
|
18920
|
-
type: LOADING,
|
|
18921
|
-
payload: false
|
|
18922
|
-
});
|
|
18923
18915
|
if (err) {
|
|
18916
|
+
dispatch({
|
|
18917
|
+
type: DISABLE_SUBMIT,
|
|
18918
|
+
payload: false
|
|
18919
|
+
});
|
|
18920
|
+
dispatch({
|
|
18921
|
+
type: LOADING,
|
|
18922
|
+
payload: false
|
|
18923
|
+
});
|
|
18924
18924
|
onFailure(err);
|
|
18925
18925
|
return dispatch({
|
|
18926
18926
|
type: SHOW_ALERT,
|
|
@@ -18936,6 +18936,14 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18936
18936
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
18937
18937
|
payment_method_id: paymentMethodId
|
|
18938
18938
|
}, (err, res) => {
|
|
18939
|
+
dispatch({
|
|
18940
|
+
type: DISABLE_SUBMIT,
|
|
18941
|
+
payload: false
|
|
18942
|
+
});
|
|
18943
|
+
dispatch({
|
|
18944
|
+
type: LOADING,
|
|
18945
|
+
payload: false
|
|
18946
|
+
});
|
|
18939
18947
|
if (err) {
|
|
18940
18948
|
onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
18941
18949
|
return dispatch({
|
|
@@ -18948,7 +18956,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18948
18956
|
}
|
|
18949
18957
|
onSuccess(res);
|
|
18950
18958
|
});
|
|
18951
|
-
},
|
|
18959
|
+
}, 2000);
|
|
18952
18960
|
}
|
|
18953
18961
|
});
|
|
18954
18962
|
}
|
|
@@ -20001,7 +20009,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
20001
20009
|
}
|
|
20002
20010
|
onSuccess(res);
|
|
20003
20011
|
});
|
|
20004
|
-
},
|
|
20012
|
+
}, 2000);
|
|
20005
20013
|
}
|
|
20006
20014
|
});
|
|
20007
20015
|
});
|
|
@@ -28803,7 +28811,7 @@ const PaymentMethodDeleteContainer = _ref => {
|
|
|
28803
28811
|
}
|
|
28804
28812
|
setTimeout(() => {
|
|
28805
28813
|
deletePaymentMethod();
|
|
28806
|
-
},
|
|
28814
|
+
}, 2000);
|
|
28807
28815
|
});
|
|
28808
28816
|
};
|
|
28809
28817
|
const deletePaymentMethod = () => {
|