I ve followed all the creation of the new stripe account and creationg of the webhook with bubble. Everything is working generally speaking as all the information from stripe payment are written in my db in bubble.
Except something that is fundamental to me: I am not able to connect a specific payment event with the current user that paied (logged in in my bubble app).
That’s because when I create/modify things in the backend workflow the actual “current user” is empty cause it is not linked to the actual person that has the account in my bubble app.
Any suggestions?
client_reference_id string
A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the Session with your internal systems.
This, like any metadata you add, will be saved in the checkout session object, so you can retrieve it in your backend workflow and search for the right user.
Thank you @dorilama , I understand the meaning but I am not understanding how to do it exactly. DOo you guys have any video? I m looking for it since some time but can’t find it
If you scroll the documentation you have the section on how to create the checkout session with all parameters. That plus the API connector is what you need.
What is the best way to attach the Stripe customer ID, Client_reference_id, or other metadata to the specific user during checkout?
As of now, I have a backend workflow that triggers via Stripe webhook. How do I connect something in the session to a user in the database if their email is different during checkout from that in the database?
Can I buy you a coffee or something? Really appreciate your help.