@miden-npm/react 0.0.15 → 0.0.17
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 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -124,7 +124,7 @@ var getQueryParams = (url) => {
|
|
|
124
124
|
|
|
125
125
|
// src/utils/api.util.ts
|
|
126
126
|
var getBaseUrl = (mode) => {
|
|
127
|
-
return mode === "sandbox" ? "https://sandbox-api.
|
|
127
|
+
return mode === "sandbox" ? "https://sandbox-api.buzapay.com/payment-gateway-api" : "";
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
// src/utils/string.util.ts
|
|
@@ -3119,16 +3119,22 @@ function BzpCheckoutCard({
|
|
|
3119
3119
|
(0, import_react11.useEffect)(() => {
|
|
3120
3120
|
let options2 = [];
|
|
3121
3121
|
if (paymentObject.currency === "USD") {
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3122
|
+
if (paymentObject.amount < 50) {
|
|
3123
|
+
options2 = paymentTypeOptions.filter(
|
|
3124
|
+
(option) => option.value !== "BANK_TRANSFER" && option.value !== "STABLE_COIN"
|
|
3125
|
+
);
|
|
3126
|
+
} else {
|
|
3127
|
+
options2 = paymentTypeOptions.filter(
|
|
3128
|
+
(option) => option.value !== "BANK_TRANSFER"
|
|
3129
|
+
);
|
|
3130
|
+
}
|
|
3125
3131
|
} else {
|
|
3126
3132
|
options2 = paymentTypeOptions.filter(
|
|
3127
3133
|
(option) => option.value !== "STABLE_COIN"
|
|
3128
3134
|
);
|
|
3129
3135
|
}
|
|
3130
3136
|
setFilteredPaymentTypeOptions(options2);
|
|
3131
|
-
}, [paymentObject.currency]);
|
|
3137
|
+
}, [paymentObject.currency, paymentObject.amount, paymentTypeOptions]);
|
|
3132
3138
|
(0, import_react11.useEffect)(() => {
|
|
3133
3139
|
if (filteredPaymentTypeOptions.length) {
|
|
3134
3140
|
setPaymentType(filteredPaymentTypeOptions[0].value);
|