#prasun-paul-chowdhury_code
1 messages ¡ Page 1 of 1 (latest)
đ 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/1354087109568499712
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
how to check a payment method has insufficient balance?
Sufficient balance for what? If you're collecting a card for later, you don't know that until you attempt payment with a payment intent
A setup intent is not a payment and there is no amount
What are you really trying to do?
That is correct. I was trying to add new payment methd (card) in customer account through API. I am using payment element which throws error while trying to add 4000000000009995 but while trying to add 4000008260003178 (3ds) then no error si throwing and card is being added.
All cards are test cards.
This card requires authentication for one-time payments. All payments are declined with an insufficient_funds failure code even after being successfully authenticated or previously set up.
The 3178 card is meant to successfully pass setup as you've described, but payments will fail with insufficient funds
so this all seems expected
If you're expecting to learn about insiffucient funds during a setup intent, then you are misunderstanding the sequence of events. There is no "payment" with a setup intent, so its generally impossible to have insufficient funds, because we might run a $0 charge, for example.