#jackmullinkosson_api

1 messages ¡ Page 1 of 1 (latest)

west iglooBOT
rustic relicBOT
#

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.

west iglooBOT
#

👋 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.

bitter fog
#

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

#

So if your array is less than 51 indices then you could just break each piece of data into a separate key/value pair

somber pilot
#

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

bitter fog
#

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

somber pilot
#

I'm already passing them as line items but I'm not receiving any line_item property in my webhook

bitter fog
#

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

somber pilot
#

I see. So the id thats included in the webhook I receive

#

I assume that would be the session ID

#

so I can use that to retrieve the session and get the line items

bitter fog
#

Yep

#

Exactly