@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.js
CHANGED
|
@@ -82,7 +82,7 @@ var getQueryParams = (url) => {
|
|
|
82
82
|
|
|
83
83
|
// src/utils/api.util.ts
|
|
84
84
|
var getBaseUrl = (mode) => {
|
|
85
|
-
return mode === "sandbox" ? "https://sandbox-api.
|
|
85
|
+
return mode === "sandbox" ? "https://sandbox-api.buzapay.com/payment-gateway-api" : "";
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
// src/utils/string.util.ts
|
|
@@ -3082,16 +3082,22 @@ function BzpCheckoutCard({
|
|
|
3082
3082
|
useEffect6(() => {
|
|
3083
3083
|
let options2 = [];
|
|
3084
3084
|
if (paymentObject.currency === "USD") {
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3085
|
+
if (paymentObject.amount < 50) {
|
|
3086
|
+
options2 = paymentTypeOptions.filter(
|
|
3087
|
+
(option) => option.value !== "BANK_TRANSFER" && option.value !== "STABLE_COIN"
|
|
3088
|
+
);
|
|
3089
|
+
} else {
|
|
3090
|
+
options2 = paymentTypeOptions.filter(
|
|
3091
|
+
(option) => option.value !== "BANK_TRANSFER"
|
|
3092
|
+
);
|
|
3093
|
+
}
|
|
3088
3094
|
} else {
|
|
3089
3095
|
options2 = paymentTypeOptions.filter(
|
|
3090
3096
|
(option) => option.value !== "STABLE_COIN"
|
|
3091
3097
|
);
|
|
3092
3098
|
}
|
|
3093
3099
|
setFilteredPaymentTypeOptions(options2);
|
|
3094
|
-
}, [paymentObject.currency]);
|
|
3100
|
+
}, [paymentObject.currency, paymentObject.amount, paymentTypeOptions]);
|
|
3095
3101
|
useEffect6(() => {
|
|
3096
3102
|
if (filteredPaymentTypeOptions.length) {
|
|
3097
3103
|
setPaymentType(filteredPaymentTypeOptions[0].value);
|