@miden-npm/react 2.0.9 → 2.1.1
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 +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1943,6 +1943,7 @@ var BaseSuccess = ({
|
|
|
1943
1943
|
value: successObject.paymentId
|
|
1944
1944
|
}
|
|
1945
1945
|
) }),
|
|
1946
|
+
successObject.paymentDate,
|
|
1946
1947
|
/* @__PURE__ */ jsx27("div", { className: "py-4", children: /* @__PURE__ */ jsx27(
|
|
1947
1948
|
BaseLabelInfo,
|
|
1948
1949
|
{
|
|
@@ -2969,8 +2970,7 @@ function PayByCard({
|
|
|
2969
2970
|
if (response.transactionReference?.trim()) {
|
|
2970
2971
|
onPaymentAuthorized?.({
|
|
2971
2972
|
paymentId: response.transactionReference,
|
|
2972
|
-
paymentDate: response?.data?.updatedAt,
|
|
2973
|
-
// optional if present
|
|
2973
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
2974
2974
|
paymentStatus: "authorized",
|
|
2975
2975
|
message
|
|
2976
2976
|
});
|
|
@@ -3482,7 +3482,7 @@ var PayByTransfer = ({
|
|
|
3482
3482
|
setPaymentReferenceStatus("pending");
|
|
3483
3483
|
onPaymentAuthorized?.({
|
|
3484
3484
|
paymentId: transactionReference,
|
|
3485
|
-
paymentDate: response
|
|
3485
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
3486
3486
|
paymentStatus: "pending",
|
|
3487
3487
|
message
|
|
3488
3488
|
});
|
|
@@ -3490,7 +3490,7 @@ var PayByTransfer = ({
|
|
|
3490
3490
|
setPaymentReferenceStatus("confirmed");
|
|
3491
3491
|
onPaymentAuthorized?.({
|
|
3492
3492
|
paymentId: transactionReference,
|
|
3493
|
-
paymentDate: response
|
|
3493
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
3494
3494
|
paymentStatus: "confirmed",
|
|
3495
3495
|
message
|
|
3496
3496
|
});
|
|
@@ -3501,7 +3501,7 @@ var PayByTransfer = ({
|
|
|
3501
3501
|
setMessage("Transaction confirmed !!");
|
|
3502
3502
|
onPaymentAuthorized?.({
|
|
3503
3503
|
paymentId: transactionReference,
|
|
3504
|
-
paymentDate: response
|
|
3504
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
3505
3505
|
paymentStatus: "confirmed",
|
|
3506
3506
|
message
|
|
3507
3507
|
});
|
|
@@ -3883,7 +3883,7 @@ var PayByStableCoin = ({
|
|
|
3883
3883
|
setPaymentReferenceStatus("pending");
|
|
3884
3884
|
onPaymentAuthorized?.({
|
|
3885
3885
|
paymentId: transactionReference,
|
|
3886
|
-
paymentDate: response
|
|
3886
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
3887
3887
|
paymentStatus: "pending",
|
|
3888
3888
|
message
|
|
3889
3889
|
});
|
|
@@ -3892,7 +3892,7 @@ var PayByStableCoin = ({
|
|
|
3892
3892
|
setPaymentReferenceStatus("confirmed");
|
|
3893
3893
|
onPaymentAuthorized?.({
|
|
3894
3894
|
paymentId: transactionReference,
|
|
3895
|
-
paymentDate: response
|
|
3895
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
3896
3896
|
paymentStatus: "confirmed",
|
|
3897
3897
|
message
|
|
3898
3898
|
});
|
|
@@ -4192,6 +4192,8 @@ function BzpCheckoutCard({
|
|
|
4192
4192
|
setSuccessObject({ ...event });
|
|
4193
4193
|
if (event.paymentStatus === "authorized") {
|
|
4194
4194
|
setCheckoutState("SUCCESS");
|
|
4195
|
+
console.log("checkout state", checkoutState);
|
|
4196
|
+
debugger;
|
|
4195
4197
|
toast.success("Payment authorization successful.", toastConfig);
|
|
4196
4198
|
} else if (event.paymentStatus === "confirmed") {
|
|
4197
4199
|
setCheckoutState("SUCCESS");
|
|
@@ -4308,7 +4310,7 @@ function BzpCheckoutCard({
|
|
|
4308
4310
|
onError: onErrorHandler
|
|
4309
4311
|
}
|
|
4310
4312
|
) }),
|
|
4311
|
-
checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER" && /* @__PURE__ */ jsx39(
|
|
4313
|
+
(checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER") && /* @__PURE__ */ jsx39(
|
|
4312
4314
|
BaseSuccess,
|
|
4313
4315
|
{
|
|
4314
4316
|
amount: paymentObject.amount,
|
|
@@ -4658,7 +4660,7 @@ function MidenCheckoutCard({
|
|
|
4658
4660
|
}
|
|
4659
4661
|
) })
|
|
4660
4662
|
] }),
|
|
4661
|
-
checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER" && /* @__PURE__ */ jsx42(
|
|
4663
|
+
(checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER") && /* @__PURE__ */ jsx42(
|
|
4662
4664
|
BaseSuccess,
|
|
4663
4665
|
{
|
|
4664
4666
|
amount: paymentObject.amount,
|