Skip to content

Commit

Permalink
Update class-wc-gateway-paypal-request.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ChromeOrange committed Apr 11, 2015
1 parent 45c76cd commit 196448d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ protected function prepare_line_items( $order ) {
}

// Check for mismatched totals
if ( number_format( $calculated_total + $order->get_total_tax() + round( $order->get_total_shipping(), 2 ) - round( $order->get_total_discount(), 2 ),'.','',2 ) != number_format( $order->get_total(),'.','',2 ) ) {
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;
}

Expand Down

0 comments on commit 196448d

Please sign in to comment.