Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | class CompleteAuthoriseAndCaptureResponse extends AbstractResponse |
||
10 | { |
||
11 | /** |
||
12 | * {@inheritdoc} |
||
13 | */ |
||
14 | 2 | public function isSuccessful(): bool |
|
15 | { |
||
16 | 2 | return isset($this->data['status']) && in_array($this->data['status'], [ |
|
17 | 2 | self::RESPONSE_STATUS_COMPLETED, |
|
18 | 2 | self::RESPONSE_STATUS_SETTLED, |
|
19 | ]); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | * |
||
25 | * In case there is no status 'cancelled' available in the response (yet), check if there is statusCode in the |
||
26 | * queryString. Icepay calls a postback to the completeUrl with data of the payment transaction as queryString. |
||
27 | */ |
||
28 | 1 | public function isCancelled(): bool |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 1 | public function getTransactionReference(): ?string |
|
40 | } |
||
41 | } |
||
42 |