#moanie-checkout-productID
1 messages · Page 1 of 1 (latest)
Hello! Where are you looking at it? Webhook or retrieving manually through the API later?
I don't think it is automatically sent there but if you retrieve the Session and expand line_items.data.price.product it you should be able to see info about what was in the session session = stripe.checkout.Session.retrieve( event.data.object.id, expand=['line_items.data.price.product'])
Checkout Session IDs will be of the form cs_123, sounds like you are in a payment_intent webhook (PaymentIntent IDs are pi_123). I'd recommend listening for the checkout.session.completed event for this
Of course!
At what point? Do you mean like refund after you have already charged a customer or cancel the PaymentIntent before it charges them?
There is this call https://stripe.com/docs/api/payment_intents/cancel
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am actually a bit unsure how that interacts with Checkout. I would recommend creating a Session, cancelling its PaymentIntent, and then trying to complete the Session to see if it does what you want https://stripe.com/docs/api/payment_intents/cancel
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.