#jot-singh_code

1 messages ¡ Page 1 of 1 (latest)

bright moatBOT
#

👋 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.

grim sparrow
#

hi! when you say they fail, what do you mean exactly? do you have an example?

tender ember
#

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

grim sparrow
#

that's expected since the 3220 card always requires auth

bright moatBOT
grim sparrow
tender ember
#

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?

violet wraith
#

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.

tender ember
#

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?

violet wraith
#

yes, seems like a good idea

tender ember
#

Got it. Thanks

tender ember
violet wraith
#

It's possible we don't send these types of emails in test mode.

tender ember
#

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?

violet wraith
#

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?

tender ember
#

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

tender ember
violet wraith
#

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

tender ember
#

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

violet wraith
#

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.

tender ember
#

I suppose so. Thank you for your support