#Atef
1 messages · Page 1 of 1 (latest)
Could you elaborate on the issue? What error message do you have? Any request id? req_xxx
req_BRtIk6KnnuLNKJ
req_sGwUo5ro14v0lp
i think i just need to know how to add images to line_items in create_checkout_session
here is my code. the errors throws only when i add invoice_data and/or images
when i comment them out or remove them from the line_items, it works well
are you still here?
Hey, sorry juggling between threads. Looking...
I think this is the property you want to pass in: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data-images
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It's inside the product_data inside the price_data field
Yeah, i read that documentation but honestly i always get it wrong
are you talking about adding images that should be inside product_data inside price_data? if so, what about invoice_data?
What do you want to set with invoice_data? I am afraid that's an old parameter we don't use anymore
ah, ok. wanted to set description of the product
Then here it is https://stripe.com/docs/api/checkout/sessions/create?lang=php#create_checkout_session-line_items-price_data-product_data-description
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.