FR 2884597 - More flexible Credit Card validation in PaymentProcessor
https://sourceforge.net/tracker/index.php?func=detail&aid=2884597&group_id=176962&atid=879335 In case of error, show error message from payment processor and not just "Payment processor error".
This commit is contained in:
parent
e114b8ce9b
commit
90d434f915
|
@ -510,7 +510,7 @@ public final class MPayment extends X_C_Payment
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "processOnline", e);
|
log.log(Level.SEVERE, "processOnline", e);
|
||||||
setErrorMessage("Payment Processor Error");
|
setErrorMessage("Payment Processor Error: " + e.getMessage());
|
||||||
}
|
}
|
||||||
setIsApproved(approved);
|
setIsApproved(approved);
|
||||||
return approved;
|
return approved;
|
||||||
|
|
Loading…
Reference in New Issue