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

[BUG] Stripe SCA payments with 3D Secure fail due to missing return url in confirm call #1115

Open
alexpilotti opened this issue Oct 13, 2023 · 0 comments · May be fixed by #1116
Open

[BUG] Stripe SCA payments with 3D Secure fail due to missing return url in confirm call #1115

alexpilotti opened this issue Oct 13, 2023 · 0 comments · May be fixed by #1116
Labels
bug Features or code that is not working correctly

Comments

@alexpilotti
Copy link

Describe the bug

Stripe SCA payments with 3D Secure fail due to missing return url in confirm call.

Here's the error message provided by Stripe:

A return_url must be specified because this Payment Intent is configured to automatically accept the payment methods enabled in the Dashboard, some of which may require a full page redirect to succeed. If you do not want to accept redirect-based payment methods, set automatic_payment_methods[enabled] to true and automatic_payment_methods[allow_redirects] to never when creating Setup Intents and Payment Intents.

To Reproduce

  1. Setup the Stripe SCA payment in the Account Settings using Stripe test keys (or live ones)
  2. Create an Event and Ticket
  3. Go to the event page and register
  4. At the payment stage use a card number that requires 3D Secure (e.g. the Stripe test card 4000002760003184)
  5. Authorize the 3D secure payment on the redirected page
  6. The error occurs

Expected behavior

The payment should complete successfully.

Screenshots
https://www.dropbox.com/scl/fi/hcp4ilzss3g9ojyc434sv/Attendize_Stripe_3DS_error.png?rlkey=esr2vod55gle477cud9s2i1ho&dl=1

Environment the bug happens in (Desktop, Mobile, CLI) (please complete the following information):

  • OS: Macos
  • Browser: Chrome
  • Version: 117.0.5938.149

Version of Attendize you are using

  • Master branch, 2.8.0

Where you are running Attendize

  • in Docker

What version or Operating System are you using on the above server

  • Ubuntu 22.04

What version of PHP you are using on the above server

  • PHP 7.4
    What web server are you using Attendize with
  • Nginx

Additional context

Here's an explanation on how returnUrl needs to be added in the confirm call:
https://github.com/thephpleague/omnipay-stripe

@alexpilotti alexpilotti added the bug Features or code that is not working correctly label Oct 13, 2023
@alexpilotti alexpilotti changed the title [BUG] Describe your bug [BUG] Stripe SCA payments with 3D Secure fail due to missing return url in confirm call Oct 13, 2023
alexpilotti added a commit to alexpilotti/Attendize that referenced this issue Oct 13, 2023
alexpilotti added a commit to alexpilotti/Attendize that referenced this issue Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Features or code that is not working correctly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant