Stripe subscription update user credits

Hi,

I’m using bubble’s stripe plugin. I have monthly subscription plans that give monthly credits (higher plans have more credits). How do I:

  1. Reset the user’s credits monthly after verifying the user’s stripe subscription is still active?

  2. Delete user’s credits if user’s subscription is not active?

  3. Change the user’s credit plan if they upgrade subscription?

Here are my attempts for 1. and 2.


I’d recommend using a web hook instead of checking the user’s subscription status at the end of each month. A web hook basically makes changes done by your users on Stripe on to your database as soon as they are made. Let’s say one of user decides to unsubscribe from his plan, that change is instantly reported to your app rather than your having to check his subscription status at the end of the month and making manual changes.

Try this link to get started, it’s not that complex (Don’t worry!) : https://www.youtube.com/watch?v=leAJ9HD93YM

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.