Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function do(): ResponseInterface |
||
12 | { |
||
13 | $url = $this->getUrl(); |
||
14 | |||
15 | $jsonBody = [ |
||
16 | 'productId' => $this->purchaseData->getProductId(), |
||
17 | 'purchaseToken' => $this->purchaseData->getPurchaseToken(), |
||
18 | ]; |
||
19 | |||
20 | return $this->httpClient->request('POST', $url, [ |
||
21 | 'headers' => $this->headers, |
||
22 | 'json' => $jsonBody, |
||
23 | ]); |
||
31 |