@nozle-js/react 0.7.0 → 0.7.1

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
@@ -879,6 +879,7 @@ function CheckoutInner({
879
879
  onReady,
880
880
  className,
881
881
  style,
882
+ returnUrl,
882
883
  children
883
884
  }) {
884
885
  const stripe = reactStripeJs.useStripe();
@@ -892,7 +893,7 @@ function CheckoutInner({
892
893
  setError(null);
893
894
  const result = await stripe.confirmPayment({
894
895
  elements,
895
- confirmParams: { return_url: window.location.href },
896
+ confirmParams: { return_url: returnUrl ?? window.location.href },
896
897
  redirect: "if_required"
897
898
  });
898
899
  setIsProcessing(false);
@@ -957,6 +958,7 @@ function Checkout({
957
958
  clientSecret,
958
959
  publishableKey,
959
960
  stripeAccount,
961
+ returnUrl,
960
962
  submitLabel,
961
963
  onSuccess,
962
964
  onComplete,
@@ -988,6 +990,7 @@ function Checkout({
988
990
  onReady,
989
991
  className,
990
992
  style,
993
+ returnUrl,
991
994
  children
992
995
  }
993
996
  ) }, clientSecret);