#Mike M - Test Cards
1 messages · Page 1 of 1 (latest)
Thanks!
We have a card that should work for this scenario: 4000000000000341
Great, thanks!
Also, I understand the Stripe will attempt to update the card details automatically if possible. Is that the usual case?
Here's a list of all out test cards and the scenarios they're good for: https://stripe.com/docs/testing#cards-responses
Or will I need to prompt my users to update their cards when they expire?
You can actually change something in your account settings on the dashboard to send an email to customers before their card expires so they can update it. One moment while I fetch the link...
In the Prevent failed payments section
Ah, amazing
I've just tried that and it let me set it up and failed the charge with: Error: Your card was declined.
Is there any way to determine that the card expiry was the cause of that?
I need a way to prompt the user to update an expired card if that fails...
You can check the decline code
But if it's an expired code, it will fail the initial SetupIntent creation (as you saw in testing)
Okay, I'll check that out, thanks!