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

Question!

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!



Answers

Dexter at Stripe just confirmed:

Unfortunately at this time there is not a way to get a charge from a token.

A workaround: if you have a timestamp of the token, you can use it to find the charge.



This video can help you solving your question :)
By: admin