@@ 18-31 (lines=14) @@ | ||
15 | /** |
|
16 | * @inheritdoc |
|
17 | */ |
|
18 | public function isSuccessful() |
|
19 | { |
|
20 | if ($this->hasNotificationDataItem('status') |
|
21 | && $this->getNotificationDataItem('status') == 'complete-ok' |
|
22 | ) { |
|
23 | return true; |
|
24 | } |
|
25 | if ($this->hasNotificationDataItem('transactionStatus') |
|
26 | && $this->getNotificationDataItem('transactionStatus') == 'complete-ok' |
|
27 | ) { |
|
28 | return true; |
|
29 | } |
|
30 | return parent::isSuccessful(); |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * @inheritdoc |
|
@@ 36-47 (lines=12) @@ | ||
33 | /** |
|
34 | * @inheritdoc |
|
35 | */ |
|
36 | public function isPending() |
|
37 | { |
|
38 | if ($this->hasNotificationDataItem('status') && $this->getNotificationDataItem('status') == 'in-progress') { |
|
39 | return true; |
|
40 | } |
|
41 | if ($this->hasNotificationDataItem('transactionStatus') |
|
42 | && $this->getNotificationDataItem('transactionStatus') == 'in-progress' |
|
43 | ) { |
|
44 | return true; |
|
45 | } |
|
46 | return parent::isPending(); |
|
47 | } |
|
48 | } |
|
49 |