#samip_00207

1 messages · Page 1 of 1 (latest)

tawdry trellisBOT
cedar cipher
#

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

blazing bear
#

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

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

cedar cipher
#

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 ?

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

#

@blazing bear

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.

cedar cipher
#

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.

blazing bear
#

No

cedar cipher
blazing bear
#

Yes you are right