Need Help with Managing Subscriptions via Stripe API

Hi everyone,

I’m currently working on integrating a pricing plan into my application where customers can subscribe to different products and cancel their subscriptions. Despite cancellations, they should still be able to access the service until their paid subscription period ends.

I’m facing a few challenges and would appreciate your insights:

  1. Which specific fields should I track to effectively manage these subscriptions and cancellations?
  2. How can I retrieve these data fields using the Stripe API or an API Connector?

Any guidance or examples of how you’ve handled similar situations would be greatly helpful!

Thank you!

Documents I’m referring to:

You need to look at webhooks. They are requests Stripe makes to your app when something changes in a subscription (for example when a subscription is cancelled).
Here’s a tutorial on YT: https://www.youtube.com/watch?v=uxHdMa21qlo

@saaswizard
Thank you for the link. It explains how Webhooks work.

My app already has Webhooks set up. I have two questions:

  1. Once the webhook is triggered, which fields should be referred to for subscription status and plan status on Bubble? (Please see the attached image.)
  2. I have both test mode and live mode set up on Stripe. Do I need to maintain two separate webhooks for these modes?

I hope this clarifies my questions.

Cheers,