#Yashish
1 messages · Page 1 of 1 (latest)
@willow bramble do you have more context? have you tried anything so far?
Currently, I am focused on verifying the webhook events and implementing certain conditions for updating the database. Could you please suggest how we can create a scenario for card payment failure? I need to test which events are being triggered during this scenario and what data we can obtain from them.
Could you please suggest how we can create a scenario for card payment failure?
https://stripe.com/docs/testing#declined-payments
you can use those test card number in payments.
How can we detect a payment failure in case of auto-renewal due to reasons such as expired card or insufficient balance?
what Stripe API are you using for the "auto renewal"?
then for example you would get an invoice.payment_failed event. https://stripe.com/docs/billing/subscriptions/webhooks#events
the details of the failure would be on the invoice->payment_intent->last_payment_error field.