#sushbhat
1 messages ยท Page 1 of 1 (latest)
Can you share the event ID (evt_xxx), so that I can take a look?
we don't have any failed event yet, but would like log it in code if we get any payment failed webhook with error details, so was wondering if its present in the request body sent by webook
For payment_intent.failed event, you may check the latest_payment_error hash for the error details: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-last_payment_error
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks!
No problem! Happy to help ๐