Total Complexity | 8 |
Total Lines | 67 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class Gateway extends AbstractGateway |
||
13 | { |
||
14 | /** |
||
15 | * Get name |
||
16 | * |
||
17 | * @return string |
||
18 | */ |
||
19 | public function getName() |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Get default parameters |
||
26 | * |
||
27 | * @return array |
||
28 | */ |
||
29 | public function getDefaultParameters() |
||
32 | } |
||
33 | |||
34 | public function setApiUsername($value) |
||
35 | { |
||
36 | return $this->setParameter('apiUsername', $value); |
||
37 | } |
||
38 | |||
39 | public function getApiUsername() |
||
40 | { |
||
41 | return $this->getParameter('apiUsername'); |
||
42 | } |
||
43 | |||
44 | public function setApiKey($value) |
||
47 | } |
||
48 | |||
49 | public function getApiKey() |
||
50 | { |
||
51 | return $this->getParameter('apiKey'); |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Purchase |
||
56 | * |
||
57 | * @param array $parameters Parameters |
||
58 | * |
||
59 | * @return Omnipay\WindcaveHpp\Message\PurchaseRequest |
||
|
|||
60 | */ |
||
61 | public function purchase(array $parameters = []) |
||
62 | { |
||
63 | return $this->createRequest( |
||
64 | PurchaseRequest::class, |
||
65 | $parameters |
||
66 | ); |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * Complete a purchase process |
||
71 | * |
||
72 | * @param array $parameters |
||
73 | * |
||
74 | * @return Omnipay\WindcaveHpp\Message\CompletePurchaseRequest |
||
75 | */ |
||
76 | public function completePurchase(array $parameters = array()) |
||
79 | } |
||
80 | } |
||
81 |