Stripe Webhooks Firing for Multiple Subscription Plans

Hi everyone,

I’m integrating Stripe subscriptions into my Bubble app, where users receive different amounts of credits depending on their subscription plan. I’ve set up a Stripe webhook that triggers a backend workflow to add credits when the payment succeeds. This works fine with one subscription plan, but the problem arises when I add a second plan.

The issue:

  • When a user subscribes to either plan, both workflows fire, and the user receives credits for both plans (e.g., 100 + 250 credits, totaling 350).

My setup:

  • I have a webhook for Stripe payment success, which triggers a backend API workflow in Bubble to add credits.
  • I tried adding a conditional “Only when” statement in the backend workflow, but I can’t seem to access the subscription plan ID in the “Request data” fields to differentiate between plans.
  • During webhook initialization, I can see the plan ID in the request data, but it doesn’t show up as an option in the “Only when” dropdown.

Is there a way to directly access and use the subscription plan ID in the “Only when” condition, or should I approach this differently?

Thanks in advance!

The plan ID should be accessible. You don’t see this?

Thanks for your response! I don’t see the object's plan id in the request data in my setup.

To explain my setup:

  • I’m using a scheduled API workflow to add credits to the user’s account. This is because when the purchase completes, for some reason, the credits aren’t being added immediately in the backend workflow when I rely directly on the webhook trigger.

Could the issue of not seeing the object's plan id be related to the fact that I’m using a scheduled API workflow to process the credit addition? Or is there something else I might be missing here?