Hi,
There is a missing check for the function generateJWT in the lib/Payplug/Authentication.php, at this line :
$response['httpResponse']['expires_date'] = time() + $response['httpResponse']['expires_in'];
There is no check for the ['expires_in'] index
Also the error trace is lost if you keep doing :
} catch (Exception $e) { return array(); }
You have to throw exception so it can be used