-
Notifications
You must be signed in to change notification settings - Fork 77
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
missing number format for line items for paypalexpress method #504
Comments
It's not liking the comma in the ITEMAMT value: 13,77 What's strange is that seems to be the only value coming out with a comma instead of a period. PayPal will only accept the period. I haven't had any other reports of this, so there must be something unique there causing this. Are you working with a plugin or anything that would be doing something with the format of the cart subtotal? |
We use qtranslate-x to have multilanguage support. This plugin uses setlocale and your plugin calls the php round function which formats its result in dependency of the current locale set. This seems to work. Can you please tell us if using "self::number_format" at this line is correct and dont cause additional problems. |
I'm sorry for the delay responding. That should work just fine. Have you been running it that way the past few days? Any issues? |
@kcppdevelopers we should make sure to use number_format on this, but check the locale code to see if it should use . or , and format accordingly. |
@angelleye, until now is working as expected, no issues after this fix |
@angelleye we have made our own number_format function because of some currency like Hungarian Forint, Japanese Yen and Taiwan New Dollar don't support Decimal amounts. |
when sending order items to payal I am getting this error:
I am referring to the function calculate in the file: paypal-for-woocommerce.php:807
I think it's because the wrong format is being sent and the amt value is not passed to the function number_format:
The text was updated successfully, but these errors were encountered: