| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 37 | 1 | public function sendData($data) |
|
| 38 | { |
||
| 39 | 1 | $this->httpClient->setConfig([ |
|
| 40 | 'curl.options' => [ |
||
| 41 | 1 | CURLOPT_SSLVERSION => 1, |
|
| 42 | 1 | CURLOPT_SSL_VERIFYHOST => 2, |
|
| 43 | 1 | CURLOPT_SSL_VERIFYPEER => 1, |
|
| 44 | 1 | ], |
|
| 45 | 1 | ]); |
|
| 46 | |||
| 47 | 1 | $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $data)->send(); |
|
| 48 | 1 | $data['_result'] = $httpResponse->getBody(1); |
|
| 49 | |||
| 50 | 1 | return $this->response = new CompletePurchaseResponse($this, $data); |
|
| 51 | } |
||
| 52 | } |
||
| 53 |