Hacker News new | ask | show | jobs
by thairu 4507 days ago
Please let me know if this helps: https://gist.github.com/thairu/1bb35222aefd6e27aa07
1 comments

Thanks for sharing that, it does make everything clear.

If it helps, I didn't see anything in the API documentation to suggest that the currency in the balance transaction (which is type of a Stripe record we don't understand and have never had to consider before) would be different to that of the charge. Checking the API Reference page as I write this, it currently refers to "pence" in the left-hand column when describing the amount and fees, even though the example in the right-hand column says "usd", and it gives no description at all for the currency field.

A quick clarification in those API docs, including an explicit mention that balance transactions are operating in terms of your pay-out currency where charges are in terms of your pay-in currency, might help a lot here. I imagine this, along with how to navigate from a charge to the corresponding balance transaction, will be FAQs for anyone implementing multiple currencies...