Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class IpnController extends AbstractController |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * @return \Symfony\Component\HttpFoundation\Response |
||
21 | */ |
||
22 | public function endpointAction() |
||
23 | { |
||
24 | $headers = getallheaders(); |
||
25 | $body = file_get_contents('php://input'); |
||
26 | |||
27 | $ipnRequestTransfer = $this->getFacade()->convertAmazonpayIpnRequest($headers, $body); |
||
28 | $this->getFacade()->handleAmazonpayIpnRequest($ipnRequestTransfer); |
||
29 | |||
30 | return new Response('Request has been processed'); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return \Symfony\Component\HttpFoundation\Response |
||
35 | */ |
||
36 | public function endpointDebugAction() |
||
53 | } |
||
54 | |||
56 |