#cansozbir - events
1 messages · Page 1 of 1 (latest)
For subscriptions you would have customersubscriptioncreated and paymentintentsucceeded
Subscriptions use paymentintents under the hood
oooh, I thought that only OTPs can create a PaymentIntent
So how can I differentiate a subscription and one time payment ?
I recommend reading this, which outlines how Subscriptions work https://stripe.com/docs/billing/subscriptions/overview
One way to tell if a PaymentIntent is associated with a Subscription is the invoice property will be populated: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-invoice
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 also recommend reading this: https://stripe.com/docs/billing/subscriptions/webhooks