@miden-npm/react 0.0.14 → 0.0.16
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 +14 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1740,7 +1740,7 @@ function BzpCheckoutIframe({
|
|
|
1740
1740
|
email: "",
|
|
1741
1741
|
phoneNumber: "",
|
|
1742
1742
|
narration: "",
|
|
1743
|
-
redirectUrl: ""
|
|
1743
|
+
redirectUrl: "https://sandbox-merchant.buzapay.com/account/three-ds-status"
|
|
1744
1744
|
}
|
|
1745
1745
|
}) {
|
|
1746
1746
|
const containerRef = useRef(null);
|
|
@@ -1816,7 +1816,7 @@ function BzpCheckoutButton({
|
|
|
1816
1816
|
email: "",
|
|
1817
1817
|
phoneNumber: "",
|
|
1818
1818
|
narration: "",
|
|
1819
|
-
redirectUrl: ""
|
|
1819
|
+
redirectUrl: "https://sandbox-merchant.buzapay.com/account/three-ds-status"
|
|
1820
1820
|
},
|
|
1821
1821
|
mode = "redirect"
|
|
1822
1822
|
}) {
|
|
@@ -3048,7 +3048,7 @@ function BzpCheckoutCard({
|
|
|
3048
3048
|
email: "",
|
|
3049
3049
|
phoneNumber: "",
|
|
3050
3050
|
narration: "",
|
|
3051
|
-
redirectUrl: ""
|
|
3051
|
+
redirectUrl: "https://sandbox-merchant.buzapay.com/account/three-ds-status"
|
|
3052
3052
|
}
|
|
3053
3053
|
}) {
|
|
3054
3054
|
const [checkoutState, setCheckoutState] = useState7("PENDING");
|
|
@@ -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);
|
|
@@ -3170,7 +3176,7 @@ function BzpCheckoutCard({
|
|
|
3170
3176
|
{
|
|
3171
3177
|
amount: paymentObject.amount,
|
|
3172
3178
|
currency: paymentObject.currency,
|
|
3173
|
-
redirectUrl: paymentObject.redirectUrl,
|
|
3179
|
+
redirectUrl: paymentObject.redirectUrl ?? "",
|
|
3174
3180
|
successObject
|
|
3175
3181
|
}
|
|
3176
3182
|
)
|