1 | <?php |
||
22 | abstract class AbstractPayment |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * Enable redirect for payment method |
||
27 | * |
||
28 | * @var bool |
||
29 | */ |
||
30 | protected $enableRedirect = false; |
||
31 | |||
32 | /** |
||
33 | * Enable success link for payment method |
||
34 | * |
||
35 | * @var bool |
||
36 | */ |
||
37 | protected $enableSuccessLink = false; |
||
38 | |||
39 | /** |
||
40 | * Enable failure link for payment method |
||
41 | * |
||
42 | * @var bool |
||
43 | */ |
||
44 | protected $enableFailureLink = false; |
||
45 | |||
46 | /** |
||
47 | * Enable cancel link for payment method |
||
48 | * |
||
49 | * @var bool |
||
50 | */ |
||
51 | protected $enableCancelLink = false; |
||
52 | |||
53 | /** |
||
54 | * Enable notify link for payment method |
||
55 | * |
||
56 | * @var bool |
||
57 | */ |
||
58 | protected $enableNotifyLink = false; |
||
59 | |||
60 | /** |
||
61 | * Returns, if redirect is enabled for the payment method |
||
62 | * |
||
63 | * @return bool |
||
64 | */ |
||
65 | public function isRedirectEnabled() |
||
69 | |||
70 | /** |
||
71 | * Returns, if the success link is enabled for the payment method |
||
72 | * |
||
73 | * @return bool |
||
74 | */ |
||
75 | public function isSuccessLinkEnabled() |
||
79 | |||
80 | /** |
||
81 | * Returns, if the failure link is enabled for the payment method |
||
82 | * |
||
83 | * @return bool |
||
84 | */ |
||
85 | public function isFailureLinkEnabled() |
||
89 | |||
90 | /** |
||
91 | * Returns, if the cancel link is enabled for the payment method |
||
92 | * |
||
93 | * @return bool |
||
94 | */ |
||
95 | public function isCancelLinkEnabled() |
||
99 | |||
100 | /** |
||
101 | * Returns, if the notify link is enabled for the payment method |
||
102 | * |
||
103 | * @return bool |
||
104 | */ |
||
105 | public function isNotifyLinkEnabled() |
||
109 | |||
110 | } |