1 | <?php |
||
14 | class Gateway extends AbstractGateway |
||
15 | { |
||
16 | 1 | public function getName() |
|
20 | |||
21 | /** |
||
22 | * Get the default parameters |
||
23 | * |
||
24 | * channel : supplied by Adelante |
||
25 | * returnMethod : either 'post' or 'redirect'; anything blank/invalid will result in 'post' |
||
26 | * sendMail : 'y' if gateway sends receipt to user; blank/invalid (or if no email address supplied) means no email |
||
27 | * |
||
28 | * currency should also be set to 'GBP' |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | 31 | public function getDefaultParameters() |
|
44 | |||
45 | 1 | public function getChannel() |
|
49 | |||
50 | 3 | public function setChannel($value) |
|
54 | |||
55 | /** |
||
56 | * Default fund code if none supplied by the item |
||
57 | */ |
||
58 | 1 | public function getFundCode() |
|
62 | |||
63 | /** |
||
64 | * Set the default fund code |
||
65 | * |
||
66 | * If this is left blank, or is unspecified a default fund code can be derived from the pre-set data selected by |
||
67 | * the given channel code, but this is not enabled by default. |
||
68 | */ |
||
69 | 3 | public function setFundCode($value) |
|
73 | |||
74 | 1 | public function getReturnMethod() |
|
78 | |||
79 | 3 | public function setReturnMethod($value) |
|
83 | |||
84 | 1 | public function getSendMail() |
|
88 | |||
89 | 3 | public function setSendMail($value) |
|
93 | |||
94 | /** |
||
95 | * Payment connector interface test endpoint for specific customer |
||
96 | */ |
||
97 | 1 | public function getTestEndpoint() |
|
101 | |||
102 | 3 | public function setTestEndpoint($value) |
|
106 | |||
107 | /** |
||
108 | * Payment connector interface live endpoint for specific customer |
||
109 | */ |
||
110 | 1 | public function getLiveEndpoint() |
|
114 | |||
115 | 3 | public function setLiveEndpoint($value) |
|
119 | |||
120 | 3 | public function purchase(array $parameters = array()) |
|
124 | |||
125 | 6 | public function completePurchase(array $parameters = array()) |
|
129 | } |
||
130 |