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

Use CheckoutV3 region for currency formatting #276

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

mmroz
Copy link
Collaborator

@mmroz mmroz commented Aug 21, 2024

Currently when using CheckoutV3 the cart totals are formatted using the locale of the device instead of the region set in CheckoutV3Configuration. This is causing the API to return errors for regions that format currency using commas instead of decimal points.

This PR fixes the issue by having the formatter respect the regional locale.

@mmroz mmroz force-pushed the markmroz/fix-locale-formatting branch from 6d47b78 to 003b40c Compare August 21, 2024 17:41
@mmroz mmroz requested a review from alanjzhang August 21, 2024 18:15
@mmroz mmroz merged commit 6f70db2 into master Aug 22, 2024
4 checks passed
@mmroz mmroz deleted the markmroz/fix-locale-formatting branch August 22, 2024 13:36
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.

2 participants