Total Complexity | 4 |
Total Lines | 49 |
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() |
||
30 | { |
||
31 | return []; |
||
32 | } |
||
33 | |||
34 | /* @todo add other functions */ |
||
35 | |||
36 | /** |
||
37 | * Purchase |
||
38 | * |
||
39 | * @param array $parameters Parameters |
||
40 | * |
||
41 | * @return Omnipay\WindcaveHpp\Message\PurchaseRequest |
||
|
|||
42 | */ |
||
43 | public function purchase(array $parameters = []) |
||
44 | { |
||
45 | return $this->createRequest( |
||
46 | PurchaseRequest::class, |
||
47 | $parameters |
||
48 | ); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * Complete a purchase process |
||
53 | * |
||
54 | * @param array $parameters |
||
55 | * |
||
56 | * @return Omnipay\WindcaveHpp\Message\CompletePurchaseRequest |
||
57 | */ |
||
58 | public function completePurchase(array $parameters = array()) |
||
61 | } |
||
62 | } |
||
63 |