Bubble Stripe plugin subscription deleted notification?

Dear all, I’ve installed Bubble Stripe plugin and I’m able to subscribe to a plan and delete the subscription via the Stripe portal. Once subscribed, the user gets a subscription item via the user field provided by the Bubble Stripe plugin via user’s Stripe Customer Subscription. I haven’t created dedicate API workflow because Bubble Stripe plugin already takes care of that. However then I don’t know when a subscription is cancelled or deleted. I would like to know when there is no more subscription because I want to update a membership field in my user. Do you know how to be noticed when a subscription is deleted? Thanks

Hi @seigneuj

You can use Stripe webhooks to be notified when a subscription is canceled or deleted. A webhook is a way for Stripe to send you an HTTP request when an event happens in your Stripe account, such as a subscription being canceled or deleted.

Here are the steps you can follow to set up a webhook in your Stripe account:

  1. Log in to your Stripe account and go to the Developers section.
  2. Click on the Webhooks link.
  3. Click on the “Add endpoint” button to create a new webhook endpoint.
  4. Enter the URL of the endpoint in your Bubble app where you want to receive the webhook events.
  5. Select the “customer.subscription.deleted” event from the list of available events. This event will be triggered when a subscription is deleted or canceled.
  6. Click on the “Add endpoint” button to save the webhook.

Once you have set up the webhook, Stripe will send an HTTP POST request to the URL you specified whenever a customer’s subscription is canceled or deleted. You can then use Bubble’s API workflow to update the membership field in your user.

Please note that you’ll need to create a dedicated API workflow in your Bubble app to handle the webhook events and update the membership field in your user. You can use Bubble’s Stripe plugin to access the subscription data and make the necessary updates to your user’s membership field.

I hope this help.

Thank you!


Thanks I will do that. I thought that Bubble Stripe plugin had already some Web hooks to manage subscription and so it would have been easier if they had also provided events in case of deletion.

Hi @seigneuj yes, there is but you still need to set it up.

Do you mean that there are already events or Web hooks coming with Bubble Stripe to know when a subscription is created or canceled? If yes where because I couldn’t find any event coming with the Bubble Stripe plugin.