Code:
$i = count($order_totals);
$i -= 1;
echo $order_totals[$i]['value'];
gets the full total amount to send to Stripe but I can only get it to work on index.php?main_page=checkout_confirmation page and need to get this to
includes/modules/payment/stripe.php
line 146
PHP Code:
$amount_total=round($order->info['total']*$order->info['currency_value'],$decimal_places)*$multiplied_by;
should be like
PHP Code:
$i = count($order_totals); $i -= 1;
$order_value = $order_totals[$i]['value'];
$amount_total = round($order_value * $order->info['currency_value'], $decimal_places) * $multiplied_by;