#Toryn-Checkout-Sub
1 messages · Page 1 of 1 (latest)
Hi @winter ravine, right now, I'm listening to customer.subscription.created.
I'm handling that fine from the perspective of updating the user's DB record with their successful subscription status, but I'm curious where I can query to get the user's subscription interval and renewal date from Stripe to insert that data into their record as well. Thanks!
Yep that is all available on the Subscription object. You want to look at current_period_end for their renewal date (https://stripe.com/docs/api/subscriptions/object#subscription_object-current_period_end) and the items.data.price.recurring.interval for the interval (https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-price-recurring-interval)
So it should all be there on the hook you are currently using.
Beautiful, thank you! You guys rock. Have a happy holidays!