protected void updatePayment(ActionRequest actionRequest, ShoppingPreferences preferences) throws Exception { String payPalEmailAddress = ParamUtil.getString(actionRequest, "payPalEmailAddress"); String[] ccTypes = StringUtil.split(ParamUtil.getString(actionRequest, "ccTypes")); String currencyId = ParamUtil.getString(actionRequest, "currencyId"); String taxState = ParamUtil.getString(actionRequest, "taxState"); double taxRate = ParamUtil.getDouble(actionRequest, "taxRate") / 100; double minOrder = ParamUtil.getDouble(actionRequest, "minOrder"); preferences.setPayPalEmailAddress(payPalEmailAddress); preferences.setCcTypes(ccTypes); preferences.setCurrencyId(currencyId); preferences.setTaxState(taxState); preferences.setTaxRate(taxRate); preferences.setMinOrder(minOrder); }