#yaldabaoth

1 messages · Page 1 of 1 (latest)

light hawkBOT
hollow tide
#

the reason i ask -- we have the webhooks set up to try to bill a failed invoice if a new card is added. but i'm working on another endpoint that will explicitly retry a failed payment and would like to test that without removing the webhook retry piece 🙂

deft fulcrum
#

No, you have to use a test card specifically for this scenario. There is one that allows you to attach it to the customer before failing on any subsequent charges, so you might consider using that one. It's 4000000000000341 from these docs: https://stripe.com/docs/testing#declined-payments

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.