@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 CHANGED
@@ -1782,7 +1782,7 @@ function BzpCheckoutIframe({
1782
1782
  email: "",
1783
1783
  phoneNumber: "",
1784
1784
  narration: "",
1785
- redirectUrl: ""
1785
+ redirectUrl: "https://sandbox-merchant.buzapay.com/account/three-ds-status"
1786
1786
  }
1787
1787
  }) {
1788
1788
  const containerRef = (0, import_react6.useRef)(null);
@@ -1858,7 +1858,7 @@ function BzpCheckoutButton({
1858
1858
  email: "",
1859
1859
  phoneNumber: "",
1860
1860
  narration: "",
1861
- redirectUrl: ""
1861
+ redirectUrl: "https://sandbox-merchant.buzapay.com/account/three-ds-status"
1862
1862
  },
1863
1863
  mode = "redirect"
1864
1864
  }) {
@@ -3085,7 +3085,7 @@ function BzpCheckoutCard({
3085
3085
  email: "",
3086
3086
  phoneNumber: "",
3087
3087
  narration: "",
3088
- redirectUrl: ""
3088
+ redirectUrl: "https://sandbox-merchant.buzapay.com/account/three-ds-status"
3089
3089
  }
3090
3090
  }) {
3091
3091
  const [checkoutState, setCheckoutState] = (0, import_react11.useState)("PENDING");
@@ -3119,16 +3119,22 @@ function BzpCheckoutCard({
3119
3119
  (0, import_react11.useEffect)(() => {
3120
3120
  let options2 = [];
3121
3121
  if (paymentObject.currency === "USD") {
3122
- options2 = paymentTypeOptions.filter(
3123
- (option) => option.value !== "BANK_TRANSFER"
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);
@@ -3207,7 +3213,7 @@ function BzpCheckoutCard({
3207
3213
  {
3208
3214
  amount: paymentObject.amount,
3209
3215
  currency: paymentObject.currency,
3210
- redirectUrl: paymentObject.redirectUrl,
3216
+ redirectUrl: paymentObject.redirectUrl ?? "",
3211
3217
  successObject
3212
3218
  }
3213
3219
  )