@pelcro/react-pelcro-js 3.34.0 → 3.35.0
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 +16 -12
- package/dist/index.esm.js +16 -12
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18772,6 +18772,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18772
18772
|
}).then(res => {
|
|
18773
18773
|
var _response$data4;
|
|
18774
18774
|
if (res.error) {
|
|
18775
|
+
dispatch({
|
|
18776
|
+
type: DISABLE_SUBMIT,
|
|
18777
|
+
payload: false
|
|
18778
|
+
});
|
|
18775
18779
|
dispatch({
|
|
18776
18780
|
type: LOADING,
|
|
18777
18781
|
payload: false
|
|
@@ -18786,10 +18790,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18786
18790
|
});
|
|
18787
18791
|
}
|
|
18788
18792
|
if (flow === "create") {
|
|
18789
|
-
dispatch({
|
|
18790
|
-
type: DISABLE_SUBMIT,
|
|
18791
|
-
payload: false
|
|
18792
|
-
});
|
|
18793
18793
|
dispatch({
|
|
18794
18794
|
type: LOADING,
|
|
18795
18795
|
payload: false
|
|
@@ -19142,15 +19142,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19142
19142
|
token: source.id
|
|
19143
19143
|
}, (err, res) => {
|
|
19144
19144
|
var _res$data, _res$data$setup_inten, _res$data2, _res$data2$setup_inte;
|
|
19145
|
-
dispatch({
|
|
19146
|
-
type: DISABLE_SUBMIT,
|
|
19147
|
-
payload: false
|
|
19148
|
-
});
|
|
19149
|
-
dispatch({
|
|
19150
|
-
type: LOADING,
|
|
19151
|
-
payload: false
|
|
19152
|
-
});
|
|
19153
19145
|
if (err) {
|
|
19146
|
+
dispatch({
|
|
19147
|
+
type: DISABLE_SUBMIT,
|
|
19148
|
+
payload: false
|
|
19149
|
+
});
|
|
19150
|
+
dispatch({
|
|
19151
|
+
type: LOADING,
|
|
19152
|
+
payload: false
|
|
19153
|
+
});
|
|
19154
19154
|
onFailure(err);
|
|
19155
19155
|
return dispatch({
|
|
19156
19156
|
type: SHOW_ALERT,
|
|
@@ -19163,6 +19163,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19163
19163
|
if (((_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$setup_inten = _res$data.setup_intent) === null || _res$data$setup_inten === void 0 ? void 0 : _res$data$setup_inten.status) === "requires_action" || ((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : (_res$data2$setup_inte = _res$data2.setup_intent) === null || _res$data2$setup_inte === void 0 ? void 0 : _res$data2$setup_inte.status) === "requires_confirmation") {
|
|
19164
19164
|
confirmStripeIntentSetup(res, "create");
|
|
19165
19165
|
} else {
|
|
19166
|
+
dispatch({
|
|
19167
|
+
type: LOADING,
|
|
19168
|
+
payload: false
|
|
19169
|
+
});
|
|
19166
19170
|
dispatch({
|
|
19167
19171
|
type: SHOW_ALERT,
|
|
19168
19172
|
payload: {
|
package/dist/index.esm.js
CHANGED
|
@@ -18742,6 +18742,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18742
18742
|
}).then(res => {
|
|
18743
18743
|
var _response$data4;
|
|
18744
18744
|
if (res.error) {
|
|
18745
|
+
dispatch({
|
|
18746
|
+
type: DISABLE_SUBMIT,
|
|
18747
|
+
payload: false
|
|
18748
|
+
});
|
|
18745
18749
|
dispatch({
|
|
18746
18750
|
type: LOADING,
|
|
18747
18751
|
payload: false
|
|
@@ -18756,10 +18760,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
18756
18760
|
});
|
|
18757
18761
|
}
|
|
18758
18762
|
if (flow === "create") {
|
|
18759
|
-
dispatch({
|
|
18760
|
-
type: DISABLE_SUBMIT,
|
|
18761
|
-
payload: false
|
|
18762
|
-
});
|
|
18763
18763
|
dispatch({
|
|
18764
18764
|
type: LOADING,
|
|
18765
18765
|
payload: false
|
|
@@ -19112,15 +19112,15 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19112
19112
|
token: source.id
|
|
19113
19113
|
}, (err, res) => {
|
|
19114
19114
|
var _res$data, _res$data$setup_inten, _res$data2, _res$data2$setup_inte;
|
|
19115
|
-
dispatch({
|
|
19116
|
-
type: DISABLE_SUBMIT,
|
|
19117
|
-
payload: false
|
|
19118
|
-
});
|
|
19119
|
-
dispatch({
|
|
19120
|
-
type: LOADING,
|
|
19121
|
-
payload: false
|
|
19122
|
-
});
|
|
19123
19115
|
if (err) {
|
|
19116
|
+
dispatch({
|
|
19117
|
+
type: DISABLE_SUBMIT,
|
|
19118
|
+
payload: false
|
|
19119
|
+
});
|
|
19120
|
+
dispatch({
|
|
19121
|
+
type: LOADING,
|
|
19122
|
+
payload: false
|
|
19123
|
+
});
|
|
19124
19124
|
onFailure(err);
|
|
19125
19125
|
return dispatch({
|
|
19126
19126
|
type: SHOW_ALERT,
|
|
@@ -19133,6 +19133,10 @@ const PaymentMethodContainerWithoutStripe = _ref => {
|
|
|
19133
19133
|
if (((_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$setup_inten = _res$data.setup_intent) === null || _res$data$setup_inten === void 0 ? void 0 : _res$data$setup_inten.status) === "requires_action" || ((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : (_res$data2$setup_inte = _res$data2.setup_intent) === null || _res$data2$setup_inte === void 0 ? void 0 : _res$data2$setup_inte.status) === "requires_confirmation") {
|
|
19134
19134
|
confirmStripeIntentSetup(res, "create");
|
|
19135
19135
|
} else {
|
|
19136
|
+
dispatch({
|
|
19137
|
+
type: LOADING,
|
|
19138
|
+
payload: false
|
|
19139
|
+
});
|
|
19136
19140
|
dispatch({
|
|
19137
19141
|
type: SHOW_ALERT,
|
|
19138
19142
|
payload: {
|