Ok the problem is that in prder-pay page we have order and not cart so the price is always 0 so a quick’n’dirty fix is to get the price from order !
file: scalapay-easy-installment-gateway.php:667
//checkout page
if (isset($woocommerce->cart)) {
$current_price = floatval(preg_replace('#[^\d.]#', '', $woocommerce->cart->total));
}
//order-pay page
if (get_query_var('order-pay')) {
$order = new WC_Order(get_query_var('order-pay'));
$current_price = floatval(preg_replace('#[^\d.]#', '', $order->total));
}