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

Fix: 3DS modal does not appear for test cards for recurring payment in India in non-Indian account #4094

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

Mayisha
Copy link
Contributor

@Mayisha Mayisha commented Mar 19, 2025

Fixes #4062

When the store is connected to a non-indian Stripe account and has a different currency than INR, the 3DS modal is not working when paid using test cards for recurring payment in India for a free trial subscription. This happens for a subscription with free trials only, basically when the total amount is 0. The 3DS modal appears fine if the subscription needs to be charged (has a non zero total price).

Changes proposed in this Pull Request:

Added the wc_stripe_generate_create_intent_request filter in create_and_confirm_setup_intent function to make sure mandate information is added to the request. If we do not include the mandate data to the setup intent request, the 3DS modal does not appear.

Testing instructions

  • Connect to a non-Indian Stripe account.
  • Set the store currency to something except INR.
  • Create a subscription product with free trial.
  • As a shopper, add the free trial subscription to your cart and go to the checkout page.
  • Try to pay with the card 4000003560000123.
  • Notice that when you click checkout, it directly takes you to the order received page without showing the 3DS authentication modal.

@Mayisha Mayisha marked this pull request as draft March 19, 2025 10:57
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

Successfully merging this pull request may close these issues.

3DS modal does not appear for test cards for recurring payment in India
1 participant