#JimmyTango
1 messages · Page 1 of 1 (latest)
Hi, what do you mean by 'a gift card with insufficient funds to cover the cost of the payment intent'? If there us insufficient funds, how do you intend it to work? Are you able to add more details so I can provide accurate guidance?
Basically, a person adds a debit card with a $25 balance (which succeeds) and tries to buy an item for $100 (which fails). In our testing, you can’t even add the 9995 test card and the 3178 test card is for 2fa, which is a different use case.
We need a card that not only has insufficient funds but is also valid to be setup as a setup intent card
Let me see if we have a test card for this
The closest would be this card, 4000000000000341: https://stripe.com/docs/testing#declined-payments. It would allow you to attach the card to the customer and when you try to charge it, it would decline. However, it won't return 'insufficient_funds' instead it would be 'generic_decline'.
Yeah, you're right -- there is not an exact way to do this. Other than what I have provided above.
That’s very unfortunate. Because the only way to test this, then, is with a real card in a live app, which as you know is a violation of TOS
Is there a reason why you'd want to see 'insufficient_funds' instead of 'generic_decline' in this case?
We are trying to simulate what we are seeing in production, which is insufficient funds from a successfully added debit card.
It would work the same way as 4000000000000341 but the error code will be 'insufficient_funds'.