BUG: Payments are out by 1 cent
-
Unfortunately because this plugin uses an unreliable method to convert from dollars to cents (floats to an integer), payments can be out by 1 cent in some cases.
For example:
WooCommerce Order Total: $134.95
FatZebra Payment Received: $134.94 (13494 cents)This is a common issue in PHP:
https://stackoverflow.com/questions/5651026/surprising-float-int-conversion-in-phpI have submitted a PR on Github to hopefully resolve this:
https://github.com/fatzebra/FatZebra-WooCommerce/pull/8https://www.ads-software.com/plugins/woocommerce-fat-zebra-gateway/
- The topic ‘BUG: Payments are out by 1 cent’ is closed to new replies.