#Fire
1 messages · Page 1 of 1 (latest)
Can you share the cs_xxx ID for the creates session?
cs_test_a1DkHwpMATOiKFOhRdnepsjF9MyN6NnTSegBB8xJ6E9F2AfjhnOlplk7G9
Looking at the creation request, I can only see a single shipping option passed: https://dashboard.stripe.com/test/logs/req_8RQi5kghRW1DQh
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ah, wait. Your code is wrong
You're only passing a single hash to shipping_options
Needs to be like:
shipping_options: [
{
shipping_rate_data: {
...
}
},
{
shipping_rate_data: {
...
}
}
]
you are absolutely correct
I didn't notice that, thank you
I was wondering, when passing in line_items, can I also pass images to be displayed in the checkout session?
Sure, if you're using price_data/product_data: 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.
ok my bad that was documented and totally missed it
thanks again for your help
you can go ahead and mark this as solved
np!