@pelcro/react-pelcro-js 4.0.0-alpha.53 → 4.0.0-alpha.54
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 -13
- package/dist/index.esm.js +16 -13
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -24227,6 +24227,10 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
24227
24227
|
var _response$data4;
|
|
24228
24228
|
|
|
24229
24229
|
if (res.error) {
|
|
24230
|
+
dispatch({
|
|
24231
|
+
type: DISABLE_SUBMIT,
|
|
24232
|
+
payload: false
|
|
24233
|
+
});
|
|
24230
24234
|
dispatch({
|
|
24231
24235
|
type: LOADING,
|
|
24232
24236
|
payload: false
|
|
@@ -24242,10 +24246,6 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
24242
24246
|
}
|
|
24243
24247
|
|
|
24244
24248
|
if (flow === "create") {
|
|
24245
|
-
dispatch({
|
|
24246
|
-
type: DISABLE_SUBMIT,
|
|
24247
|
-
payload: false
|
|
24248
|
-
});
|
|
24249
24249
|
dispatch({
|
|
24250
24250
|
type: LOADING,
|
|
24251
24251
|
payload: false
|
|
@@ -24621,16 +24621,15 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
24621
24621
|
}, (err, res) => {
|
|
24622
24622
|
var _res$data, _res$data$setup_inten, _res$data2, _res$data2$setup_inte;
|
|
24623
24623
|
|
|
24624
|
-
dispatch({
|
|
24625
|
-
type: DISABLE_SUBMIT,
|
|
24626
|
-
payload: false
|
|
24627
|
-
});
|
|
24628
|
-
dispatch({
|
|
24629
|
-
type: LOADING,
|
|
24630
|
-
payload: false
|
|
24631
|
-
});
|
|
24632
|
-
|
|
24633
24624
|
if (err) {
|
|
24625
|
+
dispatch({
|
|
24626
|
+
type: DISABLE_SUBMIT,
|
|
24627
|
+
payload: false
|
|
24628
|
+
});
|
|
24629
|
+
dispatch({
|
|
24630
|
+
type: LOADING,
|
|
24631
|
+
payload: false
|
|
24632
|
+
});
|
|
24634
24633
|
onFailure(err);
|
|
24635
24634
|
return dispatch({
|
|
24636
24635
|
type: SHOW_ALERT,
|
|
@@ -24644,6 +24643,10 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
24644
24643
|
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") {
|
|
24645
24644
|
confirmStripeIntentSetup(res, "create");
|
|
24646
24645
|
} else {
|
|
24646
|
+
dispatch({
|
|
24647
|
+
type: LOADING,
|
|
24648
|
+
payload: false
|
|
24649
|
+
});
|
|
24647
24650
|
dispatch({
|
|
24648
24651
|
type: SHOW_ALERT,
|
|
24649
24652
|
payload: {
|
package/dist/index.esm.js
CHANGED
|
@@ -24197,6 +24197,10 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
24197
24197
|
var _response$data4;
|
|
24198
24198
|
|
|
24199
24199
|
if (res.error) {
|
|
24200
|
+
dispatch({
|
|
24201
|
+
type: DISABLE_SUBMIT,
|
|
24202
|
+
payload: false
|
|
24203
|
+
});
|
|
24200
24204
|
dispatch({
|
|
24201
24205
|
type: LOADING,
|
|
24202
24206
|
payload: false
|
|
@@ -24212,10 +24216,6 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
24212
24216
|
}
|
|
24213
24217
|
|
|
24214
24218
|
if (flow === "create") {
|
|
24215
|
-
dispatch({
|
|
24216
|
-
type: DISABLE_SUBMIT,
|
|
24217
|
-
payload: false
|
|
24218
|
-
});
|
|
24219
24219
|
dispatch({
|
|
24220
24220
|
type: LOADING,
|
|
24221
24221
|
payload: false
|
|
@@ -24591,16 +24591,15 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
24591
24591
|
}, (err, res) => {
|
|
24592
24592
|
var _res$data, _res$data$setup_inten, _res$data2, _res$data2$setup_inte;
|
|
24593
24593
|
|
|
24594
|
-
dispatch({
|
|
24595
|
-
type: DISABLE_SUBMIT,
|
|
24596
|
-
payload: false
|
|
24597
|
-
});
|
|
24598
|
-
dispatch({
|
|
24599
|
-
type: LOADING,
|
|
24600
|
-
payload: false
|
|
24601
|
-
});
|
|
24602
|
-
|
|
24603
24594
|
if (err) {
|
|
24595
|
+
dispatch({
|
|
24596
|
+
type: DISABLE_SUBMIT,
|
|
24597
|
+
payload: false
|
|
24598
|
+
});
|
|
24599
|
+
dispatch({
|
|
24600
|
+
type: LOADING,
|
|
24601
|
+
payload: false
|
|
24602
|
+
});
|
|
24604
24603
|
onFailure(err);
|
|
24605
24604
|
return dispatch({
|
|
24606
24605
|
type: SHOW_ALERT,
|
|
@@ -24614,6 +24613,10 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
24614
24613
|
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") {
|
|
24615
24614
|
confirmStripeIntentSetup(res, "create");
|
|
24616
24615
|
} else {
|
|
24616
|
+
dispatch({
|
|
24617
|
+
type: LOADING,
|
|
24618
|
+
payload: false
|
|
24619
|
+
});
|
|
24617
24620
|
dispatch({
|
|
24618
24621
|
type: SHOW_ALERT,
|
|
24619
24622
|
payload: {
|