Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Trunk
-
None
-
Patch
Description
In the method processAuthResult line 1889 there is an empty if-statement for the case that authResult is null. It seems like somebody was planning to cover the case but forgot to add code.
I would suggest to return a service error when the authResult is null since otherwise it cannot be determined if the payment is authorized or not.
boolean authResultOk = authResult.booleanValue(); if (authResultOk) { orderPaymentPreference.set("statusId", "PAYMENT_AUTHORIZED"); } else { orderPaymentPreference.set("statusId", "PAYMENT_DECLINED"); }