Merge pull request #7934 from ChromeOrange/master

Update class-wc-gateway-paypal-request.php
This commit is contained in:
Mike Jolley 2015-04-13 09:35:41 +01:00
commit cd96ce9042
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ class WC_Gateway_Paypal_Request {
}
// Check for mismatched totals
if ( ( $calculated_total + $order->get_total_tax() + round( $order->get_total_shipping(), 2 ) - round( $order->get_total_discount(), 2 ) ) != $order->get_total() ) {
if ( wc_format_decimal( $calculated_total + $order->get_total_tax() + round( $order->get_total_shipping(), 2 ) - round( $order->get_total_discount(), 2 ), 2 ) != wc_format_decimal( $order->get_total(), 2 ) ) {
return false;
}