Problem passing image URL as parameter for Stripe Checkout API Call

Hi,
I just implemented Stripe Checkout session API call with Bubble API Connector.
While trying to post product image as parameter for the session, i found out that the image URL started with //xxxxx.cdn.bubble.io/xxxxxx/download.jpg.
Parameter is line_items[0][price_data][product_data][images][0]

I had to manually prepend https: to have the call work.
Is that something normal, does anyone has an hint about that please?

Thank you.

I’m trying what you suggested for create a product:

I get this error

API set up


Any ideas?

yes, its normal, actually bubble use aws S3 as a storage, when it give us link in url it missing https: part.

we always prepend https: part to a URL value on bubble file.

2 Likes

I added a solution to you post sir, images is an array of iamge , so for array we need to add braket [] and the index number inside it, the index start with 0.

so they key value should be images[0]

1 Like

ok thank you, i thought i was doing something wrong.

Worked. Champion…thank you.

1 Like

@rohan2 pleasure is mine sir :smiley:

Hi Baloshi,

I don’t know json very well. The next item I want to tackle is below.

How can I learn the different methods for array and dictionary?

Kind regards,

Rohan