@pelcro/react-pelcro-js 4.0.0-alpha.61 → 4.0.0-alpha.62
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 +21 -1
- package/dist/index.esm.js +21 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3863,7 +3863,8 @@ var messages$X = {
|
|
|
3863
3863
|
sourceUpdated: "Your payment information has been updated",
|
|
3864
3864
|
cardAuthFailed: "We are unable to authenticate your payment method. Please choose a different payment method and try again.",
|
|
3865
3865
|
cardAuthNotSupported: "Updating your payment method to one that requires authentication is currently not possible. Please use a different payment method or contact customer service.",
|
|
3866
|
-
tryAgainFromInvoice: "We were unable to authenticate your payment, however your subscription was created. Please attempt to pay for the invoice using another payment method from the dashboard."
|
|
3866
|
+
tryAgainFromInvoice: "We were unable to authenticate your payment, however your subscription was created. Please attempt to pay for the invoice using another payment method from the dashboard.",
|
|
3867
|
+
paymentProcessing: "Invoice payment is currently being processed."
|
|
3867
3868
|
};
|
|
3868
3869
|
var errors$f = {
|
|
3869
3870
|
"": ""
|
|
@@ -23696,6 +23697,25 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
23696
23697
|
content: isSubCreate ? t("messages.tryAgainFromInvoice") : t("messages.cardAuthFailed")
|
|
23697
23698
|
}
|
|
23698
23699
|
});
|
|
23700
|
+
} else if ((paymentIntent === null || paymentIntent === void 0 ? void 0 : paymentIntent.status) === "processing" && paymentIntent !== null && paymentIntent !== void 0 && paymentIntent.client_secret) {
|
|
23701
|
+
if (!isSubCreate) {
|
|
23702
|
+
dispatch({
|
|
23703
|
+
type: DISABLE_SUBMIT,
|
|
23704
|
+
payload: false
|
|
23705
|
+
});
|
|
23706
|
+
}
|
|
23707
|
+
|
|
23708
|
+
dispatch({
|
|
23709
|
+
type: LOADING,
|
|
23710
|
+
payload: false
|
|
23711
|
+
});
|
|
23712
|
+
return dispatch({
|
|
23713
|
+
type: SHOW_ALERT,
|
|
23714
|
+
payload: {
|
|
23715
|
+
type: "success",
|
|
23716
|
+
content: t("messages.paymentProcessing")
|
|
23717
|
+
}
|
|
23718
|
+
});
|
|
23699
23719
|
} else {
|
|
23700
23720
|
onSuccess(response);
|
|
23701
23721
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -3833,7 +3833,8 @@ var messages$X = {
|
|
|
3833
3833
|
sourceUpdated: "Your payment information has been updated",
|
|
3834
3834
|
cardAuthFailed: "We are unable to authenticate your payment method. Please choose a different payment method and try again.",
|
|
3835
3835
|
cardAuthNotSupported: "Updating your payment method to one that requires authentication is currently not possible. Please use a different payment method or contact customer service.",
|
|
3836
|
-
tryAgainFromInvoice: "We were unable to authenticate your payment, however your subscription was created. Please attempt to pay for the invoice using another payment method from the dashboard."
|
|
3836
|
+
tryAgainFromInvoice: "We were unable to authenticate your payment, however your subscription was created. Please attempt to pay for the invoice using another payment method from the dashboard.",
|
|
3837
|
+
paymentProcessing: "Invoice payment is currently being processed."
|
|
3837
3838
|
};
|
|
3838
3839
|
var errors$f = {
|
|
3839
3840
|
"": ""
|
|
@@ -23666,6 +23667,25 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
23666
23667
|
content: isSubCreate ? t("messages.tryAgainFromInvoice") : t("messages.cardAuthFailed")
|
|
23667
23668
|
}
|
|
23668
23669
|
});
|
|
23670
|
+
} else if ((paymentIntent === null || paymentIntent === void 0 ? void 0 : paymentIntent.status) === "processing" && paymentIntent !== null && paymentIntent !== void 0 && paymentIntent.client_secret) {
|
|
23671
|
+
if (!isSubCreate) {
|
|
23672
|
+
dispatch({
|
|
23673
|
+
type: DISABLE_SUBMIT,
|
|
23674
|
+
payload: false
|
|
23675
|
+
});
|
|
23676
|
+
}
|
|
23677
|
+
|
|
23678
|
+
dispatch({
|
|
23679
|
+
type: LOADING,
|
|
23680
|
+
payload: false
|
|
23681
|
+
});
|
|
23682
|
+
return dispatch({
|
|
23683
|
+
type: SHOW_ALERT,
|
|
23684
|
+
payload: {
|
|
23685
|
+
type: "success",
|
|
23686
|
+
content: t("messages.paymentProcessing")
|
|
23687
|
+
}
|
|
23688
|
+
});
|
|
23669
23689
|
} else {
|
|
23670
23690
|
onSuccess(response);
|
|
23671
23691
|
}
|