If I have a Stripe token from a charge, how do I get its charge id?

Viewed 4812

Right now I'm making successful charges with my Rails app but I'd like to to fetch certain details about the transaction such as the description of the item purchase and the last four digits of the credit card to show the user on their receipt page.

I've been looking at the documentation but there's really nothing that explains how to give an app the token and get back the charge_id which I can then use to get a hash of other info about the charge.

Any help would be huge. Thanks!

2 Answers
Related