#patik_api
1 messages ยท Page 1 of 1 (latest)
๐ 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!
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.
- ucalabrese57, 4 days ago, 28 messages
- ucalabrese57, 5 days ago, 23 messages
๐ happy to help
hello ! :)
when retrieving the checkout session you need to expand on the line_items to get them
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oh mmmh, so I have to do something like this ?
const sessions = await stripe.checkout.sessions.list({
payment_intent: payment_intent
line_items : expand
});
no expand: ["line_items"]
you can learning more about expanding responses here https://docs.stripe.com/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thank you very much Tarzan ! it works :)
happy to help ๐
only for information, Node JS need something different, you need to put data first : expand: ["data.line_items"],
oh yeah because you're using the list CS by PI
Error: This property cannot be expanded (line_items). You may want to try expanding 'data.line_items' instead.
what is list CS ? and PI ?
just FYI, it's better to listen to checkout.session.completed rather than payment_intent.succeeded
CS = Checkout Session, PI = Payment Intent
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.