BigDecimal amount = toRefund.get(refundOrderId).setScale(decimals, rounding);
String externalId = gOrder.getString("externalId");
String reason = "Item(s) Returned";
if (amount.floatValue() > 0) {
try {
RefundOrderRequest ror = new RefundOrderRequest(mInfo, externalId, reason, amount.floatValue(), "");
ror.send();
} catch (CheckoutException e) {
Debug.logError(e, module);
return ServiceUtil.returnError(e.getMessage());
}
} else {