@miden-npm/react 2.1.6 → 2.1.7
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 +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3582,6 +3582,7 @@ function PayByCard({
|
|
|
3582
3582
|
{
|
|
3583
3583
|
label: "Card Pin",
|
|
3584
3584
|
required: true,
|
|
3585
|
+
type: "password",
|
|
3585
3586
|
rules: ["numeric"],
|
|
3586
3587
|
value: payForm.cardPin,
|
|
3587
3588
|
mask: "0000",
|
|
@@ -3636,7 +3637,7 @@ function PayByCard({
|
|
|
3636
3637
|
}
|
|
3637
3638
|
),
|
|
3638
3639
|
/* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between gap-4 mt-6", children: [
|
|
3639
|
-
formIndex
|
|
3640
|
+
formIndex < 2 && /* @__PURE__ */ jsx36(
|
|
3640
3641
|
BaseButton,
|
|
3641
3642
|
{
|
|
3642
3643
|
label: "Previous",
|
|
@@ -3658,12 +3659,13 @@ function PayByCard({
|
|
|
3658
3659
|
disabled: isMakingPayment
|
|
3659
3660
|
}
|
|
3660
3661
|
),
|
|
3661
|
-
formIndex === 2 && /* @__PURE__ */ jsx36("div", { className: "w-
|
|
3662
|
+
formIndex === 2 && /* @__PURE__ */ jsx36("div", { className: "w-full", children: /* @__PURE__ */ jsx36(
|
|
3662
3663
|
BaseButton,
|
|
3663
3664
|
{
|
|
3664
3665
|
label: "Validate OTP",
|
|
3665
3666
|
type: "primary",
|
|
3666
3667
|
caller,
|
|
3668
|
+
customClass: "w-full",
|
|
3667
3669
|
loading: isValidatingOtp,
|
|
3668
3670
|
onClick: proceedHandler
|
|
3669
3671
|
}
|
|
@@ -4189,23 +4191,25 @@ var PayByStableCoin = ({
|
|
|
4189
4191
|
caller
|
|
4190
4192
|
);
|
|
4191
4193
|
if (response?.isSuccessful) {
|
|
4192
|
-
setPaymentReferenceDetails(
|
|
4193
|
-
|
|
4194
|
+
setPaymentReferenceDetails(
|
|
4195
|
+
caller === "buzapay" ? response.data : response
|
|
4196
|
+
);
|
|
4197
|
+
const needsConfirm = paymentReferenceDetails?.finalTransactionStatus == null || paymentReferenceDetails?.paymentStatus == null;
|
|
4194
4198
|
if (needsConfirm) {
|
|
4195
4199
|
setMessage("Transaction not confirmed !!");
|
|
4196
4200
|
setPaymentReferenceStatus("pending");
|
|
4197
4201
|
onPaymentAuthorized?.({
|
|
4198
4202
|
paymentId: transactionReference,
|
|
4199
|
-
paymentDate:
|
|
4203
|
+
paymentDate: paymentReferenceDetails?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
4200
4204
|
paymentStatus: "pending",
|
|
4201
4205
|
message
|
|
4202
4206
|
});
|
|
4203
|
-
} else if (
|
|
4207
|
+
} else if (paymentReferenceDetails?.finalTransactionStatus === "Success" || paymentReferenceDetails?.paymentStatus === "Payment Received") {
|
|
4204
4208
|
setMessage("Transaction confirmed !!");
|
|
4205
4209
|
setPaymentReferenceStatus("confirmed");
|
|
4206
4210
|
onPaymentAuthorized?.({
|
|
4207
4211
|
paymentId: transactionReference,
|
|
4208
|
-
paymentDate:
|
|
4212
|
+
paymentDate: paymentReferenceDetails?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
4209
4213
|
paymentStatus: "confirmed",
|
|
4210
4214
|
message
|
|
4211
4215
|
});
|
|
@@ -4215,7 +4219,7 @@ var PayByStableCoin = ({
|
|
|
4215
4219
|
setMessage(response.responseMessage || "");
|
|
4216
4220
|
onPaymentAuthorized?.({
|
|
4217
4221
|
paymentId: transactionReference,
|
|
4218
|
-
paymentDate:
|
|
4222
|
+
paymentDate: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4219
4223
|
paymentStatus: "used",
|
|
4220
4224
|
message
|
|
4221
4225
|
});
|