@miden-npm/react 0.0.14 → 0.0.15

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.d.cts CHANGED
@@ -48,7 +48,7 @@ interface IPaymentObject {
48
48
  email: string;
49
49
  phoneNumber: string;
50
50
  narration: string;
51
- redirectUrl: string;
51
+ redirectUrl?: string;
52
52
  }
53
53
 
54
54
  declare function usePaymentIntents(): {
package/dist/index.d.ts CHANGED
@@ -48,7 +48,7 @@ interface IPaymentObject {
48
48
  email: string;
49
49
  phoneNumber: string;
50
50
  narration: string;
51
- redirectUrl: string;
51
+ redirectUrl?: string;
52
52
  }
53
53
 
54
54
  declare function usePaymentIntents(): {
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");
@@ -3170,7 +3170,7 @@ function BzpCheckoutCard({
3170
3170
  {
3171
3171
  amount: paymentObject.amount,
3172
3172
  currency: paymentObject.currency,
3173
- redirectUrl: paymentObject.redirectUrl,
3173
+ redirectUrl: paymentObject.redirectUrl ?? "",
3174
3174
  successObject
3175
3175
  }
3176
3176
  )