#ThisIsJustin
1 messages · Page 1 of 1 (latest)
This depends on whether you plan to scale or not.
If you are going to scale up then you'll likely want to listen to webhooks and update local data. You would then check against your local data to validate your users subscription status.
But if you don't think this is going to scale up much so API rate limits won't be an issue then you can query the API each time a user logs in
Are there docs to show what the API call looks like. That is the part I couldn't find.
Also, what event should the webhook be watching for?
Im guessing there are a few events I would have to listen for.
You would listen to customer.subscription.updated to get notified of any change to a customer subscription
For the API call you would use our List API for subscriptions and specify the customer parameter: https://stripe.com/docs/api/subscriptions/list