#ws2644
1 messages · Page 1 of 1 (latest)
hi river
Product Retrieve API can be used to retrieve product information: https://stripe.com/docs/api/products/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Which event are you planning to subscribe? Can you share your use case?
try to get product detail and payment details.
For product details, product.* events can be added.
For payment details, which integration type do you use? Checkout Session, Payment Intent, Subscription, Invoice...etc?
Isn't checkout.session.completed event to get payment details?
but the product name is not showing up
I see! So you're looking to check the product that the customer made on this specific Checkout Session?
I have product details now but I do not have name
Yes I want to have name: test 21 fund etc show up
webhook could merge two api data points together right ?
After receiving checkout.session.completed event, you'd need to make additional Checkout Session retrieval request with expanding line_items.data.price.product field to get the product information.
- Checkout Session Retrieval API: https://stripe.com/docs/api/checkout/sessions/retrieve
- Expand an object: https://stripe.com/docs/api/expanding_objects
webhook could merge two api data points together right ?
Nope. Separate request will be required.
what the events does then