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!