#samip_00207
1 messages · Page 1 of 1 (latest)
payment_intent.payment_failed is the event that I am trying to listen to and get the decline_code accross. But, all I see is generic_decline
You can start the subscription with 4242 card. Once the first invoice is paid successfully, update the subscription's default_payment_method with one fo the decline test card (https://stripe.com/docs/testing#declined-payments), and advance the test clock to the next billing
How do I simulate the behaviour of stolen_card as I cannot use the card in the table found here : https://stripe.com/docs/testing?testing-method=card-numbers#declined-payments because I cannot attach it to a customer ?
@blazing bear
There's no need to tag me, I'll get back to you when I have time.
You can only attach this card.
So, there is no real way to test the other scenarios then? as when I attach this card to a customer object I get a generic_decline back whereas I want to test for the other scenarios.
No
If I cannot test, can I make the assumption that when in a production environment the decline reasons are passed down and they'd be one of these ?
Yes you are right