@miden-npm/react 0.0.7 → 0.0.8
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 +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2212,7 +2212,7 @@ function PayByCard({
|
|
|
2212
2212
|
};
|
|
2213
2213
|
const cardNumberInputHandler = (event) => {
|
|
2214
2214
|
setCardType(cardTypeHandler(event));
|
|
2215
|
-
payRules.cardPin = "required|numeric";
|
|
2215
|
+
payRules.cardPin = cardType === "Verve" ? "required|numeric" : "";
|
|
2216
2216
|
};
|
|
2217
2217
|
(0, import_react8.useEffect)(() => {
|
|
2218
2218
|
(async () => {
|
|
@@ -3095,12 +3095,14 @@ function BzpCheckoutCard({
|
|
|
3095
3095
|
};
|
|
3096
3096
|
const setSuccess = (event) => {
|
|
3097
3097
|
setSuccessObject({ ...event });
|
|
3098
|
-
if (
|
|
3098
|
+
if (event.paymentStatus === "Authorized") {
|
|
3099
|
+
setCheckoutState("SUCCESS");
|
|
3100
|
+
} else if (event.paymentStatus === "Payment failed") {
|
|
3099
3101
|
setCheckoutState("PENDING");
|
|
3100
|
-
} else if (
|
|
3102
|
+
} else if (event.paymentStatus === "used") {
|
|
3101
3103
|
setCheckoutState("USED");
|
|
3102
3104
|
} else {
|
|
3103
|
-
setCheckoutState("
|
|
3105
|
+
setCheckoutState("PENDING");
|
|
3104
3106
|
}
|
|
3105
3107
|
};
|
|
3106
3108
|
(0, import_react11.useEffect)(() => {
|