Bubble API Help Needed - NULL Key Value Not Working

I’m using a newer version of Bubble than I was previously and doing a rewrite of my app. I’m running into a problem.

I’m trying to make a call to the Stripe endpoint at:

https://api.stripe.com/v1/checkout/sessions

This endpoint returns a lot of information about a checkout session after the session is complete. So you can get the name of the person, etc.

I’m sending this parameter, as is instructed by Stripe:

It’s a NULL/empty Key and an ID number for the checkout session. It’s an easy call. It returns all that info about the checkout session after you make it.

Previously, in the Workflow editor in Bubble, it showed up like this:

So an empty Key showed up as param. with nothing next to it. It worked just fine and returned all the info I needed. It also works fine in Postman.

NOW with the newer Bubble version I’m rewriting in, I’m having a problem. When there is an empty key, it looks like this!!

There is no longer a place to enter my value as Bubble thinks an empty key means "don’t show it’

PLEASE NOTE: “Private” is unchecked in the API plugin editor so it’s a public key. It should show up even when empty. That’s how it worked before.

How are people getting around this? How can I have my empty key show up in the workflow editor so I can give it a value for the API call?

Thank you!

Is no one using NULL Keys in API calls? Stripe requires them. No one self integrated with Stripe? Or is it just the weekend? ha ha ha

I wrote my own plugin which may work. Testing it out.

AND i can’t get my custom plugin to show any JSON return body data in the workflow editor so I can access it. UGH

Guess I’m the only one here this weekend.

Hi!

The session ID should be passed as a path, not a parameter:
https://api.stripe.com/v1/checkout/sessions/[Chesout Session ID]

Remember to uncheck the Private checkbox so you can pass the session ID as a parameter of the action.

1 Like

Oooh! This is a good workaround!

I will try it and report back. So the “” will make it visible in the workflow editor?

Will try and report back ASAP. Thank you!!!

FLAWLESS! Works perfectly! Thank you!!

I had always put these things in as Key/Value pairs with a NULL Key before and they worked. Nice to know/understand this other way which helps in forming URLs in general.