@miden-npm/react 2.1.0 → 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 +5 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2971,7 +2971,6 @@ function PayByCard({
|
|
|
2971
2971
|
onPaymentAuthorized?.({
|
|
2972
2972
|
paymentId: response.transactionReference,
|
|
2973
2973
|
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
2974
|
-
// optional if present
|
|
2975
2974
|
paymentStatus: "authorized",
|
|
2976
2975
|
message
|
|
2977
2976
|
});
|
|
@@ -3483,7 +3482,7 @@ var PayByTransfer = ({
|
|
|
3483
3482
|
setPaymentReferenceStatus("pending");
|
|
3484
3483
|
onPaymentAuthorized?.({
|
|
3485
3484
|
paymentId: transactionReference,
|
|
3486
|
-
paymentDate: response
|
|
3485
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
3487
3486
|
paymentStatus: "pending",
|
|
3488
3487
|
message
|
|
3489
3488
|
});
|
|
@@ -3491,7 +3490,7 @@ var PayByTransfer = ({
|
|
|
3491
3490
|
setPaymentReferenceStatus("confirmed");
|
|
3492
3491
|
onPaymentAuthorized?.({
|
|
3493
3492
|
paymentId: transactionReference,
|
|
3494
|
-
paymentDate: response
|
|
3493
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
3495
3494
|
paymentStatus: "confirmed",
|
|
3496
3495
|
message
|
|
3497
3496
|
});
|
|
@@ -3502,7 +3501,7 @@ var PayByTransfer = ({
|
|
|
3502
3501
|
setMessage("Transaction confirmed !!");
|
|
3503
3502
|
onPaymentAuthorized?.({
|
|
3504
3503
|
paymentId: transactionReference,
|
|
3505
|
-
paymentDate: response
|
|
3504
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
3506
3505
|
paymentStatus: "confirmed",
|
|
3507
3506
|
message
|
|
3508
3507
|
});
|
|
@@ -3884,7 +3883,7 @@ var PayByStableCoin = ({
|
|
|
3884
3883
|
setPaymentReferenceStatus("pending");
|
|
3885
3884
|
onPaymentAuthorized?.({
|
|
3886
3885
|
paymentId: transactionReference,
|
|
3887
|
-
paymentDate: response
|
|
3886
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
3888
3887
|
paymentStatus: "pending",
|
|
3889
3888
|
message
|
|
3890
3889
|
});
|
|
@@ -3893,7 +3892,7 @@ var PayByStableCoin = ({
|
|
|
3893
3892
|
setPaymentReferenceStatus("confirmed");
|
|
3894
3893
|
onPaymentAuthorized?.({
|
|
3895
3894
|
paymentId: transactionReference,
|
|
3896
|
-
paymentDate: response
|
|
3895
|
+
paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
3897
3896
|
paymentStatus: "confirmed",
|
|
3898
3897
|
message
|
|
3899
3898
|
});
|