Hacker News new | past | comments | ask | show | jobs | submit login

Awesome, thanks Patrick.

How do we do it?




Thanks pc, cannot reply to your comment yet.

In the docs https://stripe.com/docs/api#create_charge there is no reffrence to exchange rates. Do you return a response that shows what the exchange rate was and so how much we will be paid in GBP after charging in USD? (paypal (yuck) do this)


Hey, charge responses now return a reference to a balance transaction (which represents what you'll actually be paid in).

You can auto expand the balance transaction upon charge creation by passing expand[]=balance_transaction, or you can retrieve the balance transaction directly: https://stripe.com/docs/api#retrieve_balance_transaction.


Would that not bundle all the USD payments for the day into one conversion?

I would be very keen to have an individual conversion on each card payment as that is how our internal database sees the world.


Right -- those are per-charge, not per-day.


Ah, yes. I was distracted by cake in the office and missed that this is a new endpoint on the API. I thought you were talking about the transfers endpoint.

This is exactly what we wanted. Thanks!


Cake in the office is a great thing to be distracted by. (:


Do you disclose anywhere the basis for calculating the FX transaction rate? I'd be interested to know how you do this before actually having a clients transaction convert.


Just specify a different currency in your charge and everything else will automatically do the right thing -- it should be a 3-char change. (We'll automatically convert charges to the currency of your bank account.)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: