SaaS Stripe subscription

Hey,

I have a Saas that charges users a subscription with Stripe (with Bubble’s Stripe plugin).

To subscribe, I have a workflow that goes:

  1. Subscribe user to a plan
  2. Terminate workflow if result of step 1 is empty
  3. Make changes to user, etc…

And I also have 2 webhooks:

  1. invoice.payment_succeeded, for when an invoice payment attempt succeeds, and I send
  2. invoice.payment_failed, for when an invoice payment attempt fails

So, when a user tries to subscribe and everything goes well, all the steps in the workflow are done, the invoice.payment_succeeded is triggered which sends a succeed email to the user.

But when a user tries to subscribe and it fails, it terminates the workflow and the invoice.payment_failed is triggered which sends a failed email to the user.


But yesterday a user tried to subscribe, and the subscription failed, thus the workflow terminated. But the invoice.payment_failed was triggered, and sent an email to no user (the to in the email was empty because I didn’t had the client id). And in Stripe the subscription status is incomplete


  1. What does incomplete means?
  2. What webhook is needed of this case?
  3. And also, are there any other essential webhooks needed for a SaaS?

Thanks in advance :slight_smile: :computer:

Hello @hacker

The Stripe subscription object can have one of seven statuses:

One approach is to leverage Bubble’s deep integration with Stripe if you want to rely less on webhooks related to the success or not of a subscription payment.

If you use Bubble’s Stripe plugin you can monitor the status of the Stripe subscription object with this expression:

image

This way you can build conditionality into your app’s different functions that depend on the status of a subscription pretty easily . :smiley:

1 Like

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