#Kervin-subscription
1 messages · Page 1 of 1 (latest)
first when subscribes, what is the current_period_end of subscriptions?
I am using this checkout form
in this case just want to get the current_period_end of subscriptions
You could listen to the webhook event customer.subscription.created, and there look at the value of subscription.current_period_end.
https://stripe.com/docs/api/events/types#event_types-customer.subscription.created
yes, I checked this.
so I can listen this event "the customer.subscription.created"
then how can I get subscription.current_period_end on the client side(I am using the react js)
If you want this information on the frontend, then the simplest solution is to store that information in your own database.
but when I get the /webhook on the frontend, I can't get the data based on the event