#patik_api

1 messages ยท Page 1 of 1 (latest)

fading cliffBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!

๐Ÿ”— 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/1212024495259258901

๐Ÿ“ Have more to share? You can add more detail below, including code, screenshots, videos, etc.

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!

hushed orbitBOT
#

Hello! We'll be with you shortly. 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.

zinc socket
#

๐Ÿ‘‹ happy to help

surreal rock
#

hello ! :)

zinc socket
#

when retrieving the checkout session you need to expand on the line_items to get them

surreal rock
#

oh mmmh, so I have to do something like this ?
const sessions = await stripe.checkout.sessions.list({
payment_intent: payment_intent
line_items : expand
});

zinc socket
#

no expand: ["line_items"]

surreal rock
#

thank you very much Tarzan ! it works :)

zinc socket
#

happy to help ๐Ÿ™‚

surreal rock
#

only for information, Node JS need something different, you need to put data first : expand: ["data.line_items"],

zinc socket
#

oh yeah because you're using the list CS by PI

surreal rock
#

Error: This property cannot be expanded (line_items). You may want to try expanding 'data.line_items' instead.

#

what is list CS ? and PI ?

zinc socket
#

just FYI, it's better to listen to checkout.session.completed rather than payment_intent.succeeded

zinc socket
surreal rock
#

oh ok thanks :)

#

thank you very much for you help :)

fading cliffBOT
#

Feedback

Have comments, suggestions, or feedback about your experience on this server? You're in the right place! Press the button below to let us know what's on your mind.

:warning: Note: you will not receive a response!

We don't respond to feedback submissions. If you want or need a response use one of the buttons in https://discord.com/channels/841573134531821608/842637025524842496 instead.

If you have feedback that's not specific to your experience on this server please contact Stripe support instead of using the button below.