#kun_webhooks
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/1278183099678855199
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kun_setupintents-savedpms-defaultpm, 1 day ago, 65 messages
hello! is this what you're looking for? https://docs.stripe.com/api/events/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
exactly and thanks
tbh stripe support is amazing
Hi
from
invoice.oayment_succeeded and invoice.payment_failed
how can I get the generic status
for example if the inovice failed I need the reason message or something like this so I can send it to custoimer via email
https://docs.stripe.com/api/invoices/object
I checked the inovice events could not find something I wanted
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
are you there?
is there a reason why you need to send the exact reason to your customer via email? Stripe already offers a feature whereby we inform a customer about failed payments via email
do you have an example Invoice id? That'll help me point you to the specific object / parameter
No I am not tesing my webhooks
i saw the official stripe documentation and checked their inovie object
lets go back to the original question for a second, Stripe can inform your customers about failed payments via email and offers them a way to make payment again. Why do you need to alert your customer why the invoice failed?
Well for extra information
you can retrieve the invoice again and expand payment_intent - you would then look at https://docs.stripe.com/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.
I'd like to mention though that it's possible that the invoice payment may fail because the customer doesn't have a default payment method set. In which case, you wouldn't see last_payment_error