#evanS
1 messages · Page 1 of 1 (latest)
Hi 👋
What API call are you making that you want to get a Payment Intent or Charge ID from?
Hey snufkin! Sorry to trouble you guys again.
My ultimate goal it to get the paymentIntentID in order to pass it and make refunds.
Right now, I am trying to accomplish this through the checkout session object as Its the only Id I seem to have that I can use to retrieve information.
Okay so you have the Checkout Session object?
I do, yes
Okay so you should be able to access the payment_intent property which contains the Payment Intent ID https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
I was trying that approach but am not getting anything back from Stripe, only nulls.
I was/ am tryign to dive into it all a little bit and saw that the paymentIntent is not longer included in the checkoutSession object as of 8/22?
What API version are you on?
Wait...what is the status of this checkout session? I'm seeing subscrition as the mode and unpaid
A Payment Intent won't be created until the Checkout Session is successful
Okay, so after I create the subscription, can I use the session Id to get to the payment intent?
You will likely need to use the invoice property instead and get the payment_intent from the Invoice object: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-invoice
so, I'll use this then to get that, perfect. Thank you. I'll go dig into it now, hopefully I won't come back. I greatly appreciate your help!