How can i build subscription service with Strapi and Stripe

hi,
I’m working on a subscription service . that the users need to pay a subscription fee to have access to the website.
so I create a Subscription content type to store the data like :

  • Stripe customer_id
  • subscription_id
  • start and end date…
    and also I want to use Stripe webhook to check if the invoice was paid or not to update the subscription status .
    please if anyone can help me . i will appreciate it
    thanks

Stripe has good documentation from what I can see. I would start here for a guide on how they handle subscription events/webhooks. That whole page has some pretty useful info on how to work with subscriptions.

thank you , I will take look at it