Problema:
$a = 64.60;
$b = 100.00;
(intval($a*$b) = 6459
Isto ocorre em algumas situações no PHP, acredito que por algum bug.
Solução:
No arquivo: class-wc-checkout-cielo-gateway.php
Alterar a linha:
1 |
if ( is_object( $order ) && $amount === intval( $order->get_total() * 100 ) && $order_number === $order->id ) { |
Para:
1 |
if ( is_object( $order ) && $amount === intval( strval($order->get_total() * 100) ) && $order_number === $order->id ) { |