@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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -108,6 +108,8 @@ var toastConfig = {
|
|
|
108
108
|
var getBaseUrl = (mode, caller) => {
|
|
109
109
|
if (mode === "sandbox") {
|
|
110
110
|
return caller === "buzapay" ? "https://sandbox-api.buzapay.com/payment-gateway-api" : "https://sandbox-api.midencards.io/miden-web";
|
|
111
|
+
} else if (mode === "production") {
|
|
112
|
+
return caller === "buzapay" ? "https://merchant.buzapay.com/payment-gateway-api" : "https://sandbox-api.midencards.io/miden-web";
|
|
111
113
|
}
|
|
112
114
|
return "";
|
|
113
115
|
};
|
|
@@ -4607,7 +4609,7 @@ function MidenCheckoutCard({
|
|
|
4607
4609
|
/* @__PURE__ */ jsxs30(
|
|
4608
4610
|
"div",
|
|
4609
4611
|
{
|
|
4610
|
-
className: checkoutState === "SUCCESS" ? "col-span-3" : "col-span-2",
|
|
4612
|
+
className: checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER" ? "col-span-3" : "col-span-2",
|
|
4611
4613
|
children: [
|
|
4612
4614
|
checkoutState === "PENDING" && /* @__PURE__ */ jsxs30("div", { className: "flex items-center justify-between p-6", children: [
|
|
4613
4615
|
/* @__PURE__ */ jsx42(IconMidenLogo, {}),
|
|
@@ -4656,7 +4658,7 @@ function MidenCheckoutCard({
|
|
|
4656
4658
|
}
|
|
4657
4659
|
) })
|
|
4658
4660
|
] }),
|
|
4659
|
-
checkoutState === "SUCCESS" && /* @__PURE__ */ jsx42(
|
|
4661
|
+
checkoutState === "SUCCESS" || checkoutState === "USED" && paymentType === "BANK_TRANSFER" && /* @__PURE__ */ jsx42(
|
|
4660
4662
|
BaseSuccess,
|
|
4661
4663
|
{
|
|
4662
4664
|
amount: paymentObject.amount,
|