pay-uz
pay-uz copied to clipboard
PaymentExeption
Paynet.php , Даже если success возвращает exeption мне кажется вы забили поставить try catch try { $this->merchant->Authorize(); switch ($this->request->params['method']) { case Request::METHOD_CheckTransaction: $body = Response::makeResponse($this->CheckTransaction()); break; case Request::METHOD_PerformTransaction: $body = Response::makeResponse($this->PerformTransaction()); break; case Request::METHOD_CancelTransaction: $body = Response::makeResponse($this->CancelTransaction()); break; case Request::METHOD_GetStatement: $body = $this->GetStatement(); break; case Request::METHOD_GetInformation: $body = Response::makeResponse($this->GetInformation()); break; default: $this->response->response($this->request, 'Method not found.', Response::ERROR_METHOD_NOT_FOUND); } return $this->response->response($this->request, $body, Response::SUCCESS); }catch (PaymentException $exception){ return $exception->getMessage(); }