#kun_api

1 messages ¡ Page 1 of 1 (latest)

hexed knotBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1396874959724482681

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

spring ermine
#

You'd have to use 4000000000000341 which is the decline after attach card

#

It won't decline with insufficient funds

#

But is still a way to test a subsequent decline after a success

#

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.

wheat sandal
#

so it mean first it got accepted then decline due to insufficient balance

#

and then I can trigger the webhook of invoice_failed and Then i can test my feature?

spring ermine
#

Yes

#

It won't have a decline code of insufficient funds

#

But it's still a way to test decline for the second payment

wheat sandal
#

got it

#

A quick question
how can I test insufficient balance?

#

or the solution you have mentioned above is enough for both tests?

spring ermine
#

You can't in this scenario. We don't have a test card that successfully attaches and then later declines with the insufficient funds code. However, what I suggested should be enough. Declines are declines and the code doesn't change the behavior

wheat sandal
#

Got it thanks