/** * @param Payone_Api_Request_Interface $request * @return bool * @throws Payone_Api_Exception_Request_InvalidKey * @throws Payone_Api_Exception_Request_InvalidMid * @throws Payone_Api_Exception_Request_InvalidMode * @throws Payone_Api_Exception_Request_InvalidPortalid */ public function validateRequest(Payone_Api_Request_Interface $request) { if ($request->getMid() == '') { throw new Payone_Api_Exception_Request_InvalidMid(); } if ($request->getPortalid() == '') { throw new Payone_Api_Exception_Request_InvalidPortalid(); } if ($request->getKey() == '') { throw new Payone_Api_Exception_Request_InvalidKey(); } if ($request->getMode() == '') { throw new Payone_Api_Exception_Request_InvalidMode(); } return true; }