#ironbeard
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Would this fire as soon as the user has successfully subscribed?
In that case I think the customer.subscription.created event would suite your needs pretty well: https://stripe.com/docs/api/events/types#event_types-customer.subscription.created
Hmm, my flow gets the client secret from the latest_invoice of a Subscription created to pass to the Card Element. Does that mean that customer.subscription.created fires then?
Yes, I suppose so, thanks!
In that case you would listen for invoice.paid and only send the welcome email when the billing_reason is subscription_create: https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason
perfect, thanks!
Happy to help ๐
Have a good one!