#jackmullinkosson_api
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- jackmullinkosson_api, 17 hours ago, 56 messages
- jack_connect-applicationfee-checkout, 2 days ago, 10 messages
- jackmullinkosson_api, 6 days ago, 30 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1255870215187857518
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hello
Yeah that's not possible. You would need to destructure your data, pass it as a string, and then restructure in your webhook handler.
You can't pass an array via metadata
What you can do though is use different metadata keys to help with this
We support up to 50 keys (https://docs.stripe.com/api/metadata)
So if your array is less than 51 indices then you could just break each piece of data into a separate key/value pair
Gotcha, and theres no other property I could send the line items with?
Because I need to be able to show like:
You purchased
1 family ticket
2 individual tickets
Oh
That's a bit different
Those are the actual products, right?
So yes, you pass an array of line_items to charge
So you would just create separate Prices/Products for each of these and pass them as line_items
I'm already passing them as line items but I'm not receiving any line_item property in my webhook
Ah ah ah
Yes it isn't returned by default
You have to retrieve the Checkout Session and expand line_items
That has an example