From c3ce43c6370d2f255a5aa0694fbacfd01a2c8f8d Mon Sep 17 00:00:00 2001 From: Si Chen Date: Tue, 22 Jan 2008 05:06:35 +0000 Subject: [PATCH] return failure instead of error if a payment method does not have a payment setting, such as paypal, when doing a refund. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@614118 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/ofbiz/accounting/payment/PaymentGatewayServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java index 3b16f69f29..c4dd198a8b 100644 --- a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java @@ -2264,7 +2264,7 @@ public class PaymentGatewayServices { return ServiceUtil.returnError("No refund service defined"); } } else { - return ServiceUtil.returnError("No payment settings found"); + return ServiceUtil.returnFailure("No payment settings found"); } }