#birdy247-webhooks
1 messages · Page 1 of 1 (latest)
For a subscription, woudl you recomend we use the invoice Pyament Succeeded webhook or the Payment Intent Succeeded webhook?
So that we know the membership payment was successful
it's better to use invoice.payment_succeeded https://stripe.com/docs/api/events/types#event_types-invoice.payment_succeeded
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok, can we assume we will always get both?
yes
it's better to choose one, and since your handling invoices events it's better to use invoice.payment_succeeded and invoice.payment_failed etc.
for what it's worth, there's an edge case I didn't take into consideration when answering your question
the better event to subscribe to is invoice.paid since it will also accommodate the edge case where an invoice amount is 0