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

[4.0] Failed 3D secure payment doesn't respect cancelUrl #248

Open
jonleverrier opened this issue Sep 20, 2023 · 3 comments
Open

[4.0] Failed 3D secure payment doesn't respect cancelUrl #248

jonleverrier opened this issue Sep 20, 2023 · 3 comments
Assignees
Labels

Comments

@jonleverrier
Copy link

jonleverrier commented Sep 20, 2023

Description

I've updated to Commerce Stripe v4. I'm using it with my own payment form and JS from Commerce Stripe v3. All works fine, apart from when 3D secure payments fail.

Before updating, if a 3D secure payment failed, you would be redirected back to the url defined in cancelUrlwhich is defined in the commerce/payments/pay form. This is no longer the case.

Steps to reproduce

  1. Put through a 3D secure payment using card 4000002760003184 and fail the transaction on the stripe test page
  2. Browser goes into a redirect loop

It's trying to load a URL which looks like the below (I've removed some parts)

https://test.local.ddev.site/index.php?commerceTransactionHash=da58b25c7260c3e4418d50e1f8683db2&p=actions%2Fcommerce%2Fpayments%2Fcomplete-payment&payment_intent=pi_<removed>&payment_intent_client_secret=pi_<removed>_secret_<removed>&source_redirect_slug=test_<removed>&source_type=card

Do I need web hooks configured for this to work?

Additional info

  • Craft CMS version:3.5.5
  • Stripe for Craft Commerce version: 4.0
  • PHP version:
  • Database driver & version:
  • Plugins & versions:
@lukeholder lukeholder self-assigned this Sep 29, 2023
@jonleverrier
Copy link
Author

Just to add, if a 3D secure payment fails, the payment in Stripe turns up as "Incomplete". Previously, this would be "Failed"

Screenshot 2023-10-10 at 19 46 52

@jonleverrier
Copy link
Author

jonleverrier commented Dec 19, 2023

This seems related #266

Basically the same issue, but with failing a test 3D secure payment versus Paypal.

@lukeholder
Copy link
Member

Can you please upgrade to the latest Stripe plugin version and let us know if this persists. I can't replicate.

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

No branches or pull requests

2 participants