#MarkoBoras
1 messages · Page 1 of 1 (latest)
Your best bet would be to listen for charge.failed and check the failure_code and failure_message fields: https://stripe.com/docs/api/charges/object#charge_object-failure_code
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Let me preformulate question
Is there some event that I can listen to in webhook
when insufficient funds on the card
Yup, that's the one
You need to be able to read the decline code and decline message in order to know if a charge failed due to insufficient funds, and this is the easiest (potentially only) way to do that
Kk
What about subscription renewal each month
after user subscribes
is there some event just for that
how can I get user payment methods
Not sure I understand what you're asking