/** * @return \GuzzleHttp\Message\Response|false|null */ protected function request() { try { $response = $this->httpClient->post($this->direct->getSignupAction(), ['body' => ['secure' => ['api_id' => $this->direct->getApiId(), 'timestamp' => $this->direct->getTimeStamp(), 'nonce' => $this->direct->getNonce(), 'signature' => $this->direct->getRequestSignature(), 'data' => $this->direct->getDataStringEncoded()]]]); } catch (RequestException $e) { if ($e->hasResponse()) { $response = $e->getResponse(); } else { $response = false; } } $this->lastResponse = $response; return $response; }