Skip to content
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

Format Money Values with Trailing 0 Characters #9

Merged
merged 2 commits into from
Jan 23, 2019
Merged

Conversation

calebkleveter
Copy link
Contributor

Format money decimal values with trailing 0 characters, so there are as many fraction digits as the currency exponent number:

85.8 USD => 85.80
10 USD => 10.00
10 XXX => 10

While most PayPal endpoints don't require this padding, some do, so we just do it for all models because it is easier that way and shouldn't break anything.

@calebkleveter calebkleveter added the bug Something isn't working label Jan 23, 2019
@calebkleveter calebkleveter self-assigned this Jan 23, 2019
@calebkleveter calebkleveter merged commit 54e8cf3 into master Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant