diff --git a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java index 71591542dd..3c35225014 100644 --- a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java @@ -996,8 +996,7 @@ public class PaymentGatewayServices { if (testOrderId == null || !allSameOrder) { Debug.logWarning("Attempt to settle Invoice #" + invoiceId + " which contained none/multiple orders", module); - Map result = ServiceUtil.returnSuccess(); - result.put("processResult", "FAILED"); + Map result = ServiceUtil.returnFailure("Attempt to settle Invoice #" + invoiceId + " which contained none/multiple orders"); return result; }