Changed order.getTotal() to order.getRemainingTotal() to support multiple PaymentInfos.
Changed the payments map to pass in all the PaymentInfos on and order to support multiple PaymentInfos.