API Connector and Stripe Line items image

Hello All,

I just want to put an image when I launch a stripe Checkout but I have an error when I try to initialize the API call in API connector.

Here is my JYSON.

success_url=<success_url>&cancel_url=<cancel_url>&mode=&payment_method_types[]=<payment_method_type>&line_items[][name]=&line_items[][description]=&line_items[][amount]=&line_items[][currency]=&line_items[][quantity]=&line_items[][price_data][product_data][image]=http:<product_image>&client_reference_id=<event_id>&submit_type=<submit_type>&payment_intent_data[capture_method]=<capture_method>&customer_email=&metadata[user_id]=<user_id>&metadata[event_url]=<event_url>

The return of Bubble is :

There was an issue setting up your call.

Raw response for the API
Status code 400
{
“error”: {
“message”: “You may only specify one of these parameters: name, price_data.”,
“param”: “line_items[0][name]”,
“type”: “invalid_request_error”
}
}

Do you see the problem ?

For what I know, line items need to have the # of the line item. Example: line_items[0][currency]=…&line_items[0][quantity]=…)… The second item will have 1 and so on.

This topic was automatically closed after 70 days. New replies are no longer allowed.