// create the currency amount
double orderTotal = orderHeader.getDouble("grandTotal").doubleValue();
CurrencyAmount currencyAmount = null;
try {
Currency currency = SelectCurrency.getInstanceByISOCode(defCur);
currencyAmount = new CurrencyAmount(orderTotal, currency);
} catch (ArgumentException ae) {
Debug.logError(ae, "Problems building CurrencyAmount", module);
request.setAttribute("_ERROR_MESSAGE_", "<li>Merchant Configuration Error, please contact customer service.");
return "error";