@pelcro/react-pelcro-js 3.6.0-beta.11 → 3.6.0-beta.12
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 +11 -3
- package/dist/index.esm.js +11 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -14837,9 +14837,17 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14837
14837
|
const SUCCESS_STATUS = "870";
|
|
14838
14838
|
|
|
14839
14839
|
if (paymentRequest.response !== SUCCESS_STATUS) {
|
|
14840
|
-
|
|
14841
|
-
|
|
14842
|
-
|
|
14840
|
+
switch (paymentRequest.response) {
|
|
14841
|
+
case "871":
|
|
14842
|
+
return handlePaymentError({
|
|
14843
|
+
error: new Error("Invalid account number")
|
|
14844
|
+
});
|
|
14845
|
+
|
|
14846
|
+
default:
|
|
14847
|
+
return handlePaymentError({
|
|
14848
|
+
error: new Error(paymentRequest.message)
|
|
14849
|
+
});
|
|
14850
|
+
}
|
|
14843
14851
|
}
|
|
14844
14852
|
}
|
|
14845
14853
|
|
package/dist/index.esm.js
CHANGED
|
@@ -14807,9 +14807,17 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14807
14807
|
const SUCCESS_STATUS = "870";
|
|
14808
14808
|
|
|
14809
14809
|
if (paymentRequest.response !== SUCCESS_STATUS) {
|
|
14810
|
-
|
|
14811
|
-
|
|
14812
|
-
|
|
14810
|
+
switch (paymentRequest.response) {
|
|
14811
|
+
case "871":
|
|
14812
|
+
return handlePaymentError({
|
|
14813
|
+
error: new Error("Invalid account number")
|
|
14814
|
+
});
|
|
14815
|
+
|
|
14816
|
+
default:
|
|
14817
|
+
return handlePaymentError({
|
|
14818
|
+
error: new Error(paymentRequest.message)
|
|
14819
|
+
});
|
|
14820
|
+
}
|
|
14813
14821
|
}
|
|
14814
14822
|
}
|
|
14815
14823
|
|