@miden-npm/react 2.0.5 → 2.0.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 CHANGED
@@ -153,6 +153,8 @@ var toastConfig = {
153
153
  var getBaseUrl = (mode, caller) => {
154
154
  if (mode === "sandbox") {
155
155
  return caller === "buzapay" ? "https://sandbox-api.buzapay.com/payment-gateway-api" : "https://sandbox-api.midencards.io/miden-web";
156
+ } else if (mode === "production") {
157
+ return caller === "buzapay" ? "https://merchant.buzapay.com/payment-gateway-api" : "https://sandbox-api.midencards.io/miden-web";
156
158
  }
157
159
  return "";
158
160
  };
@@ -4647,7 +4649,7 @@ function MidenCheckoutCard({
4647
4649
  /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4648
4650
  "div",
4649
4651
  {
4650
- className: checkoutState === "SUCCESS" ? "col-span-3" : "col-span-2",
4652
+ className: checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER" ? "col-span-3" : "col-span-2",
4651
4653
  children: [
4652
4654
  checkoutState === "PENDING" && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center justify-between p-6", children: [
4653
4655
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(IconMidenLogo, {}),
@@ -4696,7 +4698,7 @@ function MidenCheckoutCard({
4696
4698
  }
4697
4699
  ) })
4698
4700
  ] }),
4699
- checkoutState === "SUCCESS" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4701
+ checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4700
4702
  BaseSuccess,
4701
4703
  {
4702
4704
  amount: paymentObject.amount,