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