Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

formatToPrice with 4 decimals #1349

Open
Leonigas opened this issue Mar 24, 2020 · 0 comments
Open

formatToPrice with 4 decimals #1349

Leonigas opened this issue Mar 24, 2020 · 0 comments

Comments

@Leonigas
Copy link

General information

  • SDK/Library version:
  • Environment:
  • PayPal-Debug-ID values:
  • Language, language version, and OS:

Issue description

Hello,

I have in my shop some items with 4 decimals prices (sometime 0.001). The minimum quantity of these kind of product is very large so I am always sure than the gran_total can be a 2 decimals number.

But the payment failed because of the paypal service check if the gran total price == the sum of all the items prices. These prices are set to 0 because of the formatToPrice function.

I wondering how I can fix that and if it is correct to change the items price to 4 decimals number ?

Thanks

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

No branches or pull requests

1 participant