#jot-singh_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1310910603099111487
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! when you say they fail, what do you mean exactly? do you have an example?
In test mode with a checkout session in Subscription mode I have tried using the 4000 0000 0000 3220 test card and it correctly shows me the 3DS window, but even if I allow the payment, I get the payment_intent.payment_failed event at the end of the "free period" followed by payment_intent.requires_action. In case of a session in Setup mode with manual creation of the subscription, it fails the same way when I try to create the subscription
that's expected since the 3220 card always requires auth
use the 3155 card that supports being set up, and it should work
https://docs.stripe.com/testing#authentication-and-setup
Got it, but what happens in case a user in production has a card that always requires auth? What should I do in those cases?
hi! I'm taking over this thread.
Stripe will request 3DS exemptions. but still, the bank can request it, so your integration needs to handle this case.
for Subscriptions, there are settings in the Dashboard to help with this: https://dashboard.stripe.com/settings/billing/automatic
Ok, so I guess I have to enable the option to send an email in case I need to confirm a payment. Is that right?
yes, seems like a good idea
Got it. Thanks
I have tried testing the 3DS emails in test mode, but I am not getting any, instead payments are failing like they did before. I know there are some limitations to sending emails in test mode but according to this:
https://docs.stripe.com/billing/revenue-recovery/customer-emails?locale=en-US#test-your-configuration
I should get emails if I am a team member, which I am. Is there some setting that needs to be configured?
It's possible we don't send these types of emails in test mode.
Can you please check if that's the case? If so, is there a way to test the behavior as it would occur in a production environment?
I have tried testing the 3DS emails in test mode
can you clarify how you tried testing this? can you share the Subscription ID (sub_xxx) for example?
Sure, here's the subscription id: sub_1QPMpiHDZgxbFieHBiCdhTyV
I have enabled the option to "Send a Stripe-hosted link for customers to confirm their payments when required" and then I created a session in Subscription mode. I simulated the time with the test clock to get to the next renewal, but it didn't send me any email and eventually it failed. I also tried creating a subscription manually, but still no email was sent to me. Here's the sub id for the manual subscription: sub_1QPN1EHDZgxbFieHr9Uu3nub
I just noticed that I can get in the payment page from the invoice section even if no email was sent
By doing this I can test my implementation correctly
wait, why did the first invoice failed? we only send the email for the recurring invoices, not the very first one, since the customer is on session and can complete the 3DS flow directly
I suppose the first invoice failed because it was outside of the checkout session since it only occurs on the renewal because the initial period is free. I then advanced the time too much without paying which made it fail
got it. but yes assuming you used an email from your account, and didn't recieve the email, I guess it's just not supported.
I suppose so. Thank you for your support