Total Complexity | 8 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
11 | class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface |
||
12 | { |
||
13 | |||
14 | |||
15 | public function isSuccessful() |
||
16 | { |
||
17 | return false; |
||
18 | } |
||
19 | |||
20 | |||
21 | public function isRedirect() |
||
22 | { |
||
23 | return true; |
||
24 | } |
||
25 | |||
26 | |||
27 | public function getRedirectMethod() |
||
28 | { |
||
29 | return 'GET'; |
||
30 | } |
||
31 | |||
32 | |||
33 | public function getRedirectUrl() |
||
34 | { |
||
35 | return $this->request->getEndpoint('redirect') . '/MyCardPay/?AuthCode=' . $this->getToken(); |
||
36 | } |
||
37 | |||
38 | |||
39 | public function getRedirectData() |
||
42 | } |
||
43 | |||
44 | |||
45 | public function getTransactionId() |
||
46 | { |
||
47 | return $this->request->getTransactionId(); |
||
48 | } |
||
49 | |||
50 | |||
51 | public function getTransactionReference() |
||
52 | { |
||
53 | return $this->request->getTransactionReference(); |
||
54 | } |
||
55 | |||
56 | |||
57 | public function getToken() |
||
60 | } |
||
61 | |||
62 | |||
63 | } |