WP Plugin That Will Pay PayPal Accept 3 Decimal Places

2 replies
Hey folks,

We're using WP's Simple Shopping Cart plugin. However, it is patterned after PayPal's system of rounding up numbers by 2 decimal places only. Let me give a concrete example.

The shopping cart shows the correct product for 500 x $0.015, which is $7.50. However, upon checking out, PayPal shows $10.00 instead of $7.50. Needless to say, PayPal rounds up that $0.015 to it's nearest hundredth, which is $0.02.

Do you know any WP shopping cart plugin that can fix that? I've been searching for this in Google for 2 to 3 days and I haven't found a WP plugin of that kind yet.
#accept #decimal #pay #paypal #places #plugin
  • Profile picture of the author Josh Anderson
    A plugin cannot override limitations set by the service it integrates with.

    PayPal uses two decimals because there is no such currency as a .005 and they would either have to round up or round down to pay out.

    So YOU must ensure that whatever calculation you use it either speaks the same language as paypal OR passes in a total for checkout that does not have to be calculated by paypal and which uses only two decimals.
    Signature
    {{ DiscussionBoard.errors[6900380].message }}
    • Profile picture of the author contentwriting360
      Banned
      Hey Josh,

      Thanks for the enlightenment! I believe the second option you gave is the answer. Next step would be finding out how to edit the existing code of that plugin so it won't pass a total for checkout to PayPal anymore.


      Originally Posted by Josh Anderson View Post

      A plugin cannot override limitations set by the service it integrates with.

      PayPal uses two decimals because there is no such currency as a .005 and they would either have to round up or round down to pay out.

      So YOU must ensure that whatever calculation you use it either speaks the same language as paypal OR passes in a total for checkout that does not have to be calculated by paypal and which uses only two decimals.
      {{ DiscussionBoard.errors[6902177].message }}

Trending Topics