#mattbgp
1 messages ยท Page 1 of 1 (latest)
Are you using Checkout in setup mode?
If it's in payment mode, why can't you get a Payment Intent ID from it?
Are you setup to listen for webhooks? And payment_intent is not showing in the payload for checkout_session.succeded?
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And can you send the ID of checkout.session.completed event where you didn't see a PaymentIntent ID? (evt_123)
After a certain API version, intents aren't made on session creation, but they should always be around on session completion as far as I know
I just reviewed the event and it seems like it's here now, I used a different API version before while testing this.
But seems good, thanks for the help! ๐
Sounds good, if you do run in to one where it is not present, feel free to send it here (or to the main channel if this thread is closed)
One last question, the paymentintent doesn't seem to include Stripe Fees, would like to calculate net from those transactions. Is it possible to get the fee as seen on the dashboard via the API?
The Stripe fee is on the BalanceTransaction object, this doc shows how to get to it from the PaymentIntent https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment
Alright, cool thank you! ๐