How to Get Stripe Custom Field?

I’m using Bubble’s Stripe plugin.

I’d like to know how I can use & get Stripe’s custom field in Bubble after the transaction has been completed.

My case scenario is that users are using a different Email address than the Email they’ve inputted for Stripe’s payment. Therefore, I’m unable to trace the user’s account & I’m unable to create credit logs for them. My idea is to have them key in the Email tied to their account so that the system can identify them once they’ve redirected back to the web app.

This is the custom field I’ve created:

I see it in my payment link log, but I’d like to know how I can use it within Bubble for my backend?

The value I need is unfortunately not in the response body that I currently use for my existing backend workflow.

For a clearer depiction, this is the value I need:

I can retrieve the value as shown here (Don’t mind the errors. This is just a dummy backend workflow so I can see what I’m able to map from the API call):

However, as you can see - this response body doesn’t have the values I need to map the rest to their corresponding Bubble fields.

How can I make this work?

I’ve changed the workflow to Current User once the payment has been made, but Bubble’s saying that it’s an unautheticated user even though the user was logged in. Purchases can only be made by users that have an account & is logged in.

Stripe has redirected the user back to our app after the purchase, so I’m at loss as to why this is happening.

I don’t use the bubble plugin, but if you were using API to connect directly, when you create the checkout session you can send metadata which should be the users unique id and when they are returned you use the webhook for checkout session completed which sends the metadata as part of the response and bubble will recognize it as part of the detected data.