#abdul-subscription-qs
1 messages ยท Page 1 of 1 (latest)
You can leverage webhooks to track the status of the subscription: https://stripe.com/docs/billing/subscriptions/webhooks#active-subscriptions
Use that to determine if access should be permitted or not
Thanks for the quick reply. Is this based on JSON
Yes the webhook will include a JSON payload: https://stripe.com/docs/api/events/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The data.object field includes a snapshot of the full API object (Invoice in the case of invoice.paid events) at the time of the event
Thats great. So for the step by step process. I will add the customer on my stripe account and then my (inhouse) software will send a request to check if the payment was made for that month is ok and then continue
๐ taking over
I will add the customer on my stripe account and then my (inhouse) software will send a request to check if the payment was made for that month is ok and then continue
It is a bit more involved than just adding the customer.
You'd create a customer, create a subscription and then listen for the webhook events outlined in the docs my colleague shared.
Once you do that, your server-side code will receive stripe events for things happening with subscription like creation, renewal or even failed payments.
When you receive those events, you can decide how you want to handle them
abdul-subscription-qs
Great thanks hanzo and ynnoj, I'll go through the webhook events documentation and get back to you if I have any further questions.
NP! ๐ Happy to help
If I do have further questions, should I be coming back to this thread?