Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index.js:7 IntegrationError: stripe.confirmPayment(): the confirmParams.return_url argument is required when using automatic payment methods. #343

Open
rigorcadiz opened this issue Sep 12, 2023 · 1 comment

Comments

@rigorcadiz
Copy link

Describe the bug
I'm trying to use the prop redirect="if_required" to create a payment element without setting up a payment intent, but every time I test the stripe form using the dummy card details, I got this error from console.

index.js:7 IntegrationError: stripe.confirmPayment(): the `confirmParams.return_url` argument is required when using automatic payment methods.

To Reproduce
This is the format of my stripe element component:

<stripe-element-payment
  ref="paymentRef"
  :elements-options="elementsOptions"
  :confirm-params="{
    return_url: '',
  }"
  :pk="pk"
  @error="errorPayment"
  @confirmed="paymentSuccess"
  redirect="if_required"
></stripe-element-payment>

Expected behavior
I expect it to work without an error and receive a success response from paymentSuccess method.

What did I missed?

Additional:
Why the redirect property is not documented here? https://docs.vuestripe.com/vue-stripe/stripe-elements/payment

@zedrdave
Copy link

The documentation is sorely lacking on the entire redirect='if_required' flow…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants