1
|
|
|
<?php |
2
|
|
|
namespace DERHANSEN\SfEventMgt\Payment; |
3
|
|
|
|
4
|
|
|
/* |
5
|
|
|
* This file is part of the TYPO3 CMS project. |
6
|
|
|
* |
7
|
|
|
* It is free software; you can redistribute it and/or modify it under |
8
|
|
|
* the terms of the GNU General Public License, either version 2 |
9
|
|
|
* of the License, or any later version. |
10
|
|
|
* |
11
|
|
|
* For the full copyright and license information, please read the |
12
|
|
|
* LICENSE.txt file that was distributed with this source code. |
13
|
|
|
* |
14
|
|
|
* The TYPO3 project - inspiring people to share! |
15
|
|
|
*/ |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* AbstractPayment |
19
|
|
|
* |
20
|
|
|
* @author Torben Hansen <[email protected]> |
21
|
|
|
*/ |
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() |
66
|
|
|
{ |
67
|
|
|
return $this->enableRedirect; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* Returns, if the success link is enabled for the payment method |
72
|
|
|
* |
73
|
|
|
* @return bool |
74
|
|
|
*/ |
75
|
|
|
public function isSuccessLinkEnabled() |
76
|
|
|
{ |
77
|
|
|
return $this->enableSuccessLink; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* Returns, if the failure link is enabled for the payment method |
82
|
|
|
* |
83
|
|
|
* @return bool |
84
|
|
|
*/ |
85
|
|
|
public function isFailureLinkEnabled() |
86
|
|
|
{ |
87
|
|
|
return $this->enableFailureLink; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* Returns, if the cancel link is enabled for the payment method |
92
|
|
|
* |
93
|
|
|
* @return bool |
94
|
|
|
*/ |
95
|
|
|
public function isCancelLinkEnabled() |
96
|
|
|
{ |
97
|
|
|
return $this->enableCancelLink; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* Returns, if the notify link is enabled for the payment method |
102
|
|
|
* |
103
|
|
|
* @return bool |
104
|
|
|
*/ |
105
|
|
|
public function isNotifyLinkEnabled() |
106
|
|
|
{ |
107
|
|
|
return $this->enableNotifyLink; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
} |