| @@ 19-30 (lines=12) @@ | ||
| 16 | * |
|
| 17 | * @return $this |
|
| 18 | */ |
|
| 19 | public function verify() |
|
| 20 | { |
|
| 21 | try { |
|
| 22 | $response = $this->client->request('POST', $this->url(), [ |
|
| 23 | 'form_params' => $this->fields() |
|
| 24 | ]); |
|
| 25 | ||
| 26 | return $this->makeResponse(json_decode($response->getBody())); |
|
| 27 | } catch (\Exception $e) { |
|
| 28 | return (object) ['status' => false, 'message' => $e->getMessage()]; |
|
| 29 | } |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @return string |
|
| @@ 10-23 (lines=14) @@ | ||
| 7 | /** |
|
| 8 | * @return object |
|
| 9 | */ |
|
| 10 | public function verify() |
|
| 11 | { |
|
| 12 | try { |
|
| 13 | $response = $this->client->request('POST', $this->url(), [ |
|
| 14 | 'headers' => [ |
|
| 15 | 'Authorization' => $this->config->getAuth() |
|
| 16 | ], |
|
| 17 | ]); |
|
| 18 | ||
| 19 | return $this->makeResponse(json_decode($response->getBody())); |
|
| 20 | } catch (\Exception $e) { |
|
| 21 | return (object) ['status' => false, 'message' => $e->getMessage()]; |
|
| 22 | } |
|
| 23 | } |
|
| 24 | ||
| 25 | /** |
|
| 26 | * @return string |
|