Changed order.getTotal() to order.getRemainingTotal() to support multiple PaymentInfos.