#jack11sparrow
1 messages · Page 1 of 1 (latest)
There are a few:
customer.subscription.updated
invoice.created
payment_intent.created
And then events about how successful those actions were:
invoice.finalized
invoice.finalization_failed
etc
https://stripe.com/docs/billing/subscriptions/overview#subscription-events
I'd reccommend testing your flows with a test clock, we simulate time passing and emit the proper events https://stripe.com/docs/api/test_clocks
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
main thing is same events will trigger for renewal whether the inital payment was done by checkout or not
Yes invoice.paid will be triggered for both
You can look at the billing_reason property to see if this is the first payment or a renewal https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.