Model/Payment/Api/Client.php line 277 includes references to $status, and $result which are defined only in the try block. This causes an error within the catch block if garbage data is thrown at the curl call by using invalid characters in the username or password. The catch block does not cover an error with the curl call itself, thereby preventing the bubbling of the root cause of a failure because PHP errors on the undefined variables before the original exception is passed on again at line 285.
Model/Payment/Api/Client.php line 277 includes references to $status, and $result which are defined only in the try block. This causes an error within the catch block if garbage data is thrown at the curl call by using invalid characters in the username or password. The catch block does not cover an error with the curl call itself, thereby preventing the bubbling of the root cause of a failure because PHP errors on the undefined variables before the original exception is passed on again at line 285.