@pelcro/react-pelcro-js 3.26.0-beta.37 → 3.26.0-beta.38
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 +18 -14
- package/dist/index.esm.js +18 -14
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18960,22 +18960,26 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18960
18960
|
}
|
|
18961
18961
|
});
|
|
18962
18962
|
}
|
|
18963
|
-
|
|
18964
|
-
|
|
18965
|
-
|
|
18966
|
-
|
|
18967
|
-
|
|
18968
|
-
|
|
18969
|
-
|
|
18970
|
-
|
|
18971
|
-
|
|
18972
|
-
|
|
18973
|
-
|
|
18963
|
+
if (res) {
|
|
18964
|
+
setTimeout(() => {
|
|
18965
|
+
window.Pelcro.paymentMethods.deletePaymentMethod({
|
|
18966
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
18967
|
+
payment_method_id: paymentMethodId
|
|
18968
|
+
}, (err, res) => {
|
|
18969
|
+
if (err) {
|
|
18970
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
18971
|
+
return dispatch({
|
|
18972
|
+
type: SHOW_ALERT,
|
|
18973
|
+
payload: {
|
|
18974
|
+
type: "error",
|
|
18975
|
+
content: getErrorMessages(err)
|
|
18976
|
+
}
|
|
18977
|
+
});
|
|
18974
18978
|
}
|
|
18979
|
+
onSuccess(res);
|
|
18975
18980
|
});
|
|
18976
|
-
}
|
|
18977
|
-
|
|
18978
|
-
});
|
|
18981
|
+
}, 1000);
|
|
18982
|
+
}
|
|
18979
18983
|
});
|
|
18980
18984
|
}
|
|
18981
18985
|
function updateVantivCard() {
|
package/dist/index.esm.js
CHANGED
|
@@ -18930,22 +18930,26 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18930
18930
|
}
|
|
18931
18931
|
});
|
|
18932
18932
|
}
|
|
18933
|
-
|
|
18934
|
-
|
|
18935
|
-
|
|
18936
|
-
|
|
18937
|
-
|
|
18938
|
-
|
|
18939
|
-
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18933
|
+
if (res) {
|
|
18934
|
+
setTimeout(() => {
|
|
18935
|
+
window.Pelcro.paymentMethods.deletePaymentMethod({
|
|
18936
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
18937
|
+
payment_method_id: paymentMethodId
|
|
18938
|
+
}, (err, res) => {
|
|
18939
|
+
if (err) {
|
|
18940
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
|
|
18941
|
+
return dispatch({
|
|
18942
|
+
type: SHOW_ALERT,
|
|
18943
|
+
payload: {
|
|
18944
|
+
type: "error",
|
|
18945
|
+
content: getErrorMessages(err)
|
|
18946
|
+
}
|
|
18947
|
+
});
|
|
18944
18948
|
}
|
|
18949
|
+
onSuccess(res);
|
|
18945
18950
|
});
|
|
18946
|
-
}
|
|
18947
|
-
|
|
18948
|
-
});
|
|
18951
|
+
}, 1000);
|
|
18952
|
+
}
|
|
18949
18953
|
});
|
|
18950
18954
|
}
|
|
18951
18955
|
function updateVantivCard() {
|