// set the cart payment method
cart.addPaymentAmount(PAYMENT_METHOD, new BigDecimal(info.getOrderTotal()));
// validate the payment methods
CheckOutHelper coh = new CheckOutHelper(dispatcher, delegator, cart);
Map<String, Object> validateResp = coh.validatePaymentMethods();
if (ServiceUtil.isError(validateResp)) {
throw new GeneralException(ServiceUtil.getErrorMessage(validateResp));
}
// create the order & process payments