#johngnehc
1 messages · Page 1 of 1 (latest)
I have tried to add metadata to the product, the product price and the payment link but the payment_intent.succeeded doesn't contain any metadata
I have tried in test mode
For Payment Link integration, checkout.session.* event should be used for payment outcome, not payment_intent.succeeded: https://stripe.com/docs/payments/checkout/fulfill-orders
Hmmm, I see
Isn't it possible that a checkout.session.completed end up in a failed payment?
For example, when a checkout.session.completed event is received, you can then make additional Checkout Session Retrieval request and expand line_items to get the product purchased.
- Checkout Session Retrieval: https://stripe.com/docs/api/checkout/sessions/retrieve
- Expand an object: https://stripe.com/docs/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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Isn't it possible that a checkout.session.completed end up in a failed payment?
https://stripe.com/docs/payments/checkout/fulfill-orders#delayed-notification provides the details how you can handle thecheckout.session.*events for each scenario