#Mathankumar
1 messages · Page 1 of 1 (latest)
What do you want to check in local?
if payment failed I don't know the object type from webhook to check in my product?
invoice.payment_failed event will return in Invoice object. The lines field will return the plan and product details of the invoice: https://stripe.com/docs/api/invoices/object#invoice_object-lines
invoice.payment_failed event has already indicated that the payment is failed
If the payment is successful, you'll receive invoice.paid event instead
Is any way to check this practically in test mode?
Yup! You can use declined payment test card (https://stripe.com/docs/testing#declined-payments) or 3DS test card (https://stripe.com/docs/testing#regulatory-cards) and fail the authentication. It will send invoice.payment_failed event.