-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
currencies with different fractions than 2 #10
Comments
If you created a fork you can submit a PR back that I can accept to merge back to master. Take a look at this page for some more information: https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request |
Let me know if you have any problems and I'll do what I can to help. |
Thank you very much for yourr help and your library, I tried to do my best, I modified a bit the tests cause were failing (I supposed wa s something related to the acocunt that is in use witht he tests but I am also bad at testing :) eheh "forgive me father for my noobness" |
I saw your PR, but wanted to take a shot at going through it myself. Could you take a look at #13 and let me know if it solves your needs? |
Sure, I will take a look (probably tomorrow because it is a bit late today for me from italy :) ) . |
I tried with |
Well, realistically this is a problem that should be handled by Stripe more. There are a few places where the currency is specified in the resulting value, and that should be used but it seems pretty hacky. As far as coming from Stripe it should work already, but didn't you say it's no supported yet? |
In the currencies that stripe supports there are some currencies without decimal fraction, i put an extract of how it works in Money.scala |
That explanation states that JPY is a zero decimal currency... |
Hello, yes, probably I explained myself wrongly, but this is the exact issue i noticed in JPY that for example has 0 decimals, there are also other currencies have 3 or 4 decimals if i remember correctly but at the moment aren t supported by stripe. |
No worries. I'll try to give this some more thought and see if there's a good way we can handle it. |
Hello, I was testing this lib adn I noticed that is converting any currency on a currency with 2 decimals, in this case if you try to pay in i.e. JPY the amount is multiplied by 100.
I am quite noob on github and I am not mainly a developer, I did some change to the code but I don t know how to send it to help in case it is useful to solve this issue :-) feel free to contact me to per mit me to learn how I can help (I tried to fork and push but I don t know if affects in some way your job or the licence so I removed my public fork atm)
The text was updated successfully, but these errors were encountered: