This question is in reference to subscriptions. Every time a user is successfully charged I want to create a new “Package” that contains a certain quantity of services to be redeemed based on which subscription they subscribed to. From what I’ve seen on here, this would be accomplished through the bubble API. I’ve looked at the reference, but I’m still unsure of where to start. All help is much appreciated, thanks!
Edit: @emmanuel I just read another answer from you (link below) that was very helpful.
So I now have web hooks setup within stripe and I’m able to successfully send the request to bubble. All good there. So my current workflow as follows
- On every successful charge I create an new stripe “event notifier” in the database and save the event ID
From here I want to create a package (thing) and pull the following pieces of data from the stripe event to fill out various fields:
- The customers email
- the customers plan type (I have this setup as metadata)
Thanks as always, the support here has been awesome!
Okay, I figured out that issue, for anyone else, here is the process.
To get the customers email (retrieve’d from customer id"
- Email= “Get stripe customer”
- It then asks for customer ID
3.Retrieve customer by ID from the event id from the notifier you just created. this can be done by using the “retrieve from last step” option.
- Once you have the customer ID, you can pull the customer ID’s email.
I have run into another issue that I need a workaround for, but will post as a new topic.