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

Introducing correct formatting of decimal points based on the currency #159

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

khushboo-singhvi
Copy link
Contributor

Summary

In the current scenario, Express module wasn't able to handle the decimal points other than two digits. As the Amount is converted into minor units with hardcoded 100 multiplication.
With this PR, we calculate the minor units based on the currency.

Tested scenarios

Fixed issue:
#153

@khushboo-singhvi khushboo-singhvi requested a review from a team as a code owner January 2, 2025 15:42
@khushboo-singhvi khushboo-singhvi linked an issue Jan 2, 2025 that may be closed by this pull request
Copy link

sonarqubecloud bot commented Jan 2, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ECP-9565] Apple Pay - Invalid amount with JPY currency
2 participants