public Map<String,Object> finalizeOrderEntryPayment(String checkOutPaymentId,BigDecimal amount,boolean singleUse,boolean append){
  Map<String,Object> result=ServiceUtil.returnSuccess();
  if (UtilValidate.isNotEmpty(checkOutPaymentId)) {
    if (!append) {
      cart.clearPayments();
    }
    cart.addPaymentAmount(checkOutPaymentId,amount,singleUse);
  }
  return result;
}

public Map < String , Object > finalizeOrderEntryPayment ( String checkOutPaymentId , BigDecimal amount , boolean singleUse , boolean append ) { Map < String , Object > result = ServiceUtil . returnSuccess ( ) ; if ( UtilValidate . isNotEmpty ( checkOutPaymentId ) ) { if ( ! append ) { cart . clearPayments ( ) ; } cart . addPaymentAmount ( checkOutPaymentId , amount , singleUse ) ; } return result ; }
sets the payment id to use during the checkout process
