Forum Academy Marketplace Showcase Pricing Features

Send paramaters to Stripe when creating a Payment Intent

I’m trying to create a Back End Workflow that when a Stripe Payment is successful. Part of its operation is to record the Order and associated Line Items in my app’s data. My problem is that a lot of the information for the Order comes from Custom States and as there’s no “Element Actions” option on the Back End workflow so I can’t record the Order.

I’m told that Stripe allows you to send a parameter when you create the payment intent and I understand this to mean that I can pass the details I need from the Custom States to the Parameter which would then be sent back to me with the Webhook. But, try as I might, I cannot find anywhere that lets me enter Parameters when using Charge the Current User on the Workflow for the Stripe Payments. I feel like I’ve missed something fundamental.

I’m using Stripe by Bubble. Do I need to install Stripe.JS2 or something instead? I’m already out of my depth with this but I can’t believe that what I’m trying to do is really that unusual.

I’d really welcome any suggestions.

All the best
Joe

If you use the api connector you can pass metadata to the stripe api Stripe API reference – Metadata – curl

I don’t think any of the Stripe plugins allow you to pass metadata into the call (certainly the Bubble built one doesn’t)…

Which is one of many reasons I find it simpler and more effective to use the API connector instead (Stripe’s API is simple to use)…

1 Like

You should get the payment intent ID back from Stripe after the ‘charge the current user’ ?

Store that by referencing the step so you can find whatever it is you are processing later.

When the intent is captured the charge successful webhook should have the Id. It will be PI_xxxxxx.