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

Amounts over $999.99 are formatted with comma #7

Open
slogsdon opened this issue Dec 3, 2015 · 2 comments
Open

Amounts over $999.99 are formatted with comma #7

slogsdon opened this issue Dec 3, 2015 · 2 comments

Comments

@slogsdon
Copy link
Contributor

slogsdon commented Dec 3, 2015

This is causing the transactions to fail message validation on the gateway.

@Jmaiers
Copy link

Jmaiers commented Dec 3, 2015

Adding the optional parameters to the number_format() function call on line 207 of .module will properly format the data on the Drupal side for what the API is expecting.

number_format(commerce_currency_amount_to_decimal($charge['amount'], $charge['currency_code']), 2_, '.', ''_)

@slogsdon
Copy link
Contributor Author

slogsdon commented Dec 3, 2015

Thanks for the initial report and the note, @Jmaiers! We'll get a patch for this as soon as we can.

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

No branches or pull requests

2 participants