| @@ 18-26 (lines=9) @@ | ||
| 15 | return (0 == $this->getParam('NCERROR')); |
|
| 16 | } |
|
| 17 | ||
| 18 | protected function filterRequestParameters(array $httpRequest) |
|
| 19 | { |
|
| 20 | $fields = array( |
|
| 21 | 'NCERRORPLUS', |
|
| 22 | 'PAYIDSUB', |
|
| 23 | ); |
|
| 24 | ||
| 25 | return array_intersect_key($httpRequest, array_flip(array_merge($this->ogoneFields, $fields))); |
|
| 26 | } |
|
| 27 | } |
|
| 28 | ||
| @@ 40-55 (lines=16) @@ | ||
| 37 | return (0 == $this->getParam('NCERROR')); |
|
| 38 | } |
|
| 39 | ||
| 40 | protected function filterRequestParameters(array $httpRequest) |
|
| 41 | { |
|
| 42 | return array_intersect_key( |
|
| 43 | $httpRequest, |
|
| 44 | array_flip( |
|
| 45 | array_merge( |
|
| 46 | $this->ogoneFields, |
|
| 47 | array( |
|
| 48 | 'PAYIDSUB', |
|
| 49 | 'NCSTATUS', |
|
| 50 | 'NCERRORPLUS', |
|
| 51 | ) |
|
| 52 | ) |
|
| 53 | ) |
|
| 54 | ); |
|
| 55 | } |
|
| 56 | ||
| 57 | private function xmlAttributesToArray($attributes) |
|
| 58 | { |
|