#Charlie - invoice
1 messages · Page 1 of 1 (latest)
Hi,
invoice.paid is triggered every time an invoice attempt succeeds:
https://stripe.com/docs/api/events/types#event_types-invoice.paid
For checkout webhook, you can listen to this webhook checkout.session.completed
you. can find further details in this link:
https://stripe.com/docs/payments/checkout/fulfill-orders
does checkout.session.completed guarantee a succeeded payment
why/what is the difference compared to a subscription?
Subscription is for handling recurring payment,
You can build subscription using checkout sessions
https://stripe.com/docs/billing/quickstart#:~:text=Prebuilt subscription page with Stripe Checkout
So for one time charges checkout.session.completed is guaranteed to have a succeeding payment, I guess for subscriptions it is only guaranteeing that the subscription was setup und invoice.paid is the event to listen for then (especially if the subscription is not an instant charge but with a trial period)
For subscriptions, for the first invoice, you can listen juste for checkout.session.completed but for the next invoices you need to listen to invoice.paid
alright