1 | <?php |
||
21 | class Gateway extends AbstractGateway |
||
22 | { |
||
23 | |||
24 | public function getName() |
||
28 | |||
29 | /** |
||
30 | * Get the gateway parameters. |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function getDefaultParameters() |
||
41 | |||
42 | /** |
||
43 | * Get the gateway API Key. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getApiKey() |
||
51 | |||
52 | /** |
||
53 | * Set the gateway API Key. |
||
54 | * |
||
55 | * @param string $value |
||
56 | * |
||
57 | * @return Gateway provides a fluent interface. |
||
58 | */ |
||
59 | public function setApiKey($value) |
||
63 | |||
64 | /** |
||
65 | * Create a type request |
||
66 | * |
||
67 | * @param array $parameters |
||
68 | * @return \Omnipay\Common\Message\AbstractRequest |
||
69 | */ |
||
70 | public function createType(array $parameters = array()) |
||
74 | |||
75 | /** |
||
76 | * Create a customer request |
||
77 | * |
||
78 | * @param array $parameters |
||
79 | * @return \Omnipay\Common\Message\AbstractRequest |
||
80 | */ |
||
81 | public function createCustomer(array $parameters = array()) |
||
85 | |||
86 | /** |
||
87 | * Create a basket request |
||
88 | * |
||
89 | * @param array $parameters |
||
90 | * @return \Omnipay\Common\Message\AbstractRequest|CreateBasketRequest |
||
91 | */ |
||
92 | public function createBasket(array $parameters = array()) |
||
96 | |||
97 | /** |
||
98 | * Authorize and handling of return from 3D Secure or PayPal redirection. |
||
99 | * @param array $parameters |
||
100 | * @return \Omnipay\Common\Message\AbstractRequest |
||
101 | */ |
||
102 | public function authorize(array $parameters = []) |
||
106 | |||
107 | public function capture(array $parameters = array()) |
||
111 | |||
112 | public function purchase(array $parameters = array()) |
||
116 | } |
||
117 |