Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function endpointDebugAction() |
||
37 | { |
||
38 | $headersRaw = unserialize(file_get_contents('./header.txt'), []); |
||
39 | |||
40 | $headers = []; |
||
41 | foreach ($headersRaw as $headerKey => $headerValue) { |
||
42 | if (strpos($headerKey, 'Amz')) { |
||
43 | $headers[strtolower($headerKey)] = $headerValue; |
||
44 | } |
||
45 | } |
||
46 | |||
47 | $body = unserialize(file_get_contents('./body.txt'), []); |
||
48 | |||
49 | $ipnRequestTransfer = $this->getFacade()->convertAmazonpayIpnRequest($headers, $body); |
||
50 | $this->getFacade()->handleAmazonpayIpnRequest($ipnRequestTransfer); |
||
51 | |||
52 | return new Response('Request has been processed'); |
||
53 | } |
||
56 |