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