#mattsulima

1 messages ยท Page 1 of 1 (latest)

rain meadowBOT
robust socket
deep sigil
#

Thank you. Is there any way to get checkout session object having charge id? Charge id e.g. ch_xxxxxxxx

robust socket
#

Yes, it possible to get Charge ID using Checkout Session retrieval API with expanding payment_intent:

After expanding payment_intent, you'd find charge ID in latest_charge or charges.data depending on the API version you use: https://stripe.com/docs/payments/payment-intents/verifying-status#identifying-charges

deep sigil
#

Okay, sounds promising. Thank you very much!

robust socket
#

No problem! Happy to help ๐Ÿ˜„

deep sigil
#

hello again! ๐Ÿ™‚ I am testing above, and it looks my biggest problem is thatI don't have checkout session id. Like mentioned, I have charge id, I can get payment intent, but how to get checkout session from it?

robust socket
deep sigil
#

What if we don't use webhooks? ๐Ÿ™‚ We only have csv files - we use dashboard -> all transactions -> export

#

and I planned to use an API to get all metadata for single charge

robust socket
#

I'm afraid that it's not possible to get Checkout Session from the Charge ID. Listening to the webhook is the only way to get the metadata set in Payment Links/Checkout Session

deep sigil
#

Okay, thank you!

onyx falcon