craftcms / commerce-stripe

Stripe payment gateway for Craft Commerce
https://plugins.craftcms.com/commerce-stripe
MIT License
31 stars 48 forks source link

3D secure is redirecting back to home page #245

Closed kevadamson closed 8 months ago

kevadamson commented 1 year ago

Description

I'm using Stripe Payment Intents

{{ redirectInput(siteUrl ~ '' ~ entry.uri ~ '?payment=success#buy') }} {{ cart.getGateway().getPaymentFormHtml({})|raw }}

I test using the following card:

4000000000003220 (3DS2)

It takes me to the test 3DS page, when I click authorise it takes me to my website root home page, rather than the redirect URL above. Redirect URL works when no 3DS used (for e.g. 4242424242424242).

I'm testing on a development server with no password set for access.

Additional info

AugustMiller commented 1 year ago

Hey Kev, sorry for the delay!

Can you try providing a cancelUrl param in your request, as well? The commerce/payments/pay action requires that these are both set to handle a return from an offsite payment process.

peterurban commented 11 months ago

+1

Adding a cancelUrl didn't solve the problem.

lukeholder commented 8 months ago

@peterurban are you using the new payment intent for in 4.1.x - this should fix the issue for you. Make sure to look at the example templates to see how it works. Thanks.