#andystevenson
1 messages ยท Page 1 of 1 (latest)
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.
- andystevenson, 4 days ago, 9 messages
Hi ๐ not directly, since Charges and Payment Intents don't contain references to Price or Product objects. I would recommend listening for checkout.session.completed instead, or in addition to other Events, if you're using Payment Links and want to get those Price references directly in the Event.
Oh right... I presu,e I need to read the line_items off the checkout session to find the details of price etc?
Yup, which now that I think about it may not be included by default in the Event body. But if they aren't, you can use the ID of the Checkout Session with this endpoint to retrieve those:
https://stripe.com/docs/api/checkout/sessions/line_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Many thanks @median wyvern
Any time!