@miden-npm/react 2.0.9 → 2.1.0

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 CHANGED
@@ -1988,6 +1988,7 @@ var BaseSuccess = ({
1988
1988
  value: successObject.paymentId
1989
1989
  }
1990
1990
  ) }),
1991
+ successObject.paymentDate,
1991
1992
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "py-4", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1992
1993
  BaseLabelInfo,
1993
1994
  {
@@ -3014,7 +3015,7 @@ function PayByCard({
3014
3015
  if (response.transactionReference?.trim()) {
3015
3016
  onPaymentAuthorized?.({
3016
3017
  paymentId: response.transactionReference,
3017
- paymentDate: response?.data?.updatedAt,
3018
+ paymentDate: response?.data?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
3018
3019
  // optional if present
3019
3020
  paymentStatus: "authorized",
3020
3021
  message
@@ -4232,6 +4233,8 @@ function BzpCheckoutCard({
4232
4233
  setSuccessObject({ ...event });
4233
4234
  if (event.paymentStatus === "authorized") {
4234
4235
  setCheckoutState("SUCCESS");
4236
+ console.log("checkout state", checkoutState);
4237
+ debugger;
4235
4238
  import_react_hot_toast.default.success("Payment authorization successful.", toastConfig);
4236
4239
  } else if (event.paymentStatus === "confirmed") {
4237
4240
  setCheckoutState("SUCCESS");
@@ -4348,7 +4351,7 @@ function BzpCheckoutCard({
4348
4351
  onError: onErrorHandler
4349
4352
  }
4350
4353
  ) }),
4351
- checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER" && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4354
+ (checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER") && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4352
4355
  BaseSuccess,
4353
4356
  {
4354
4357
  amount: paymentObject.amount,
@@ -4698,7 +4701,7 @@ function MidenCheckoutCard({
4698
4701
  }
4699
4702
  ) })
4700
4703
  ] }),
4701
- checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4704
+ (checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER") && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4702
4705
  BaseSuccess,
4703
4706
  {
4704
4707
  amount: paymentObject.amount,