Fix: 3DS modal does not appear for test cards for recurring payment in India in non-Indian account #4094
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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