Hi everyone,
I am working on a project where users can purchase credit packs (Small, Medium, Large) via Stripe. Each credit pack has a unique Product ID in Stripe.
What I want to achieve is to update the user’s credits in my Bubble app based on the Stripe Product ID when a purchase is made. So, for example, if a user buys a Small credit pack, I want to add 100 credits to their account, and so on for Medium and Large packs.
I have set up a webhook in Stripe to send events to my Bubble app, and I am trying to capture the Product ID from the webhook data to determine which credit pack was purchased, and then update the user’s credits accordingly.
…
For context, these products are purchasable via a pricing table which is embedded in HTML on a pricing page I have in bubble. More context, yes I did make these products beforehand before adding them to a pricing table. Each product is a one-time purchase product.
Also, I’ve already successfully done something with a subscription pricing table, it’s working fine and giving users credits when x user subscribes to x plan. I cannot get it to work with one-time purchases though.
Thanks in advance!