1 | <?php |
||
18 | class Gateway extends AbstractGateway |
||
19 | { |
||
20 | /** |
||
21 | * Create a authorize request. |
||
22 | * |
||
23 | * @param array $parameters |
||
24 | * |
||
25 | * @return AuthorizeRequest |
||
26 | */ |
||
27 | 11 | public function authorize(array $parameters = []) |
|
31 | |||
32 | /** |
||
33 | * @param array $parameters |
||
34 | * |
||
35 | * @return CaptureRequest |
||
36 | */ |
||
37 | 4 | public function capture(array $parameters = []) |
|
41 | |||
42 | /** |
||
43 | * @return array |
||
44 | */ |
||
45 | 37 | public function getDefaultParameters() |
|
54 | |||
55 | /** |
||
56 | * @return int Merchant ID |
||
57 | */ |
||
58 | 1 | public function getMerchantId() |
|
62 | |||
63 | /** |
||
64 | * Get gateway display name |
||
65 | * This can be used by carts to get the display name for each gateway. |
||
66 | */ |
||
67 | 1 | public function getName() |
|
71 | |||
72 | /** |
||
73 | * @return int Portal ID |
||
74 | */ |
||
75 | 1 | public function getPortalId() |
|
79 | |||
80 | /** |
||
81 | * @return string MD5 hash of the security key generated for this portal. (generated and delivered by BillPay) |
||
82 | */ |
||
83 | 1 | public function getSecurityKey() |
|
87 | |||
88 | /** |
||
89 | * Creates a invoice created request |
||
90 | * |
||
91 | * @param array $parameters |
||
92 | * |
||
93 | * @return InvoiceCreatedRequest |
||
94 | */ |
||
95 | 1 | public function invoiceCreated(array $parameters = []) |
|
99 | |||
100 | /** |
||
101 | * Create a purchase request (is alias of authorize) |
||
102 | * |
||
103 | * @param array $parameters |
||
104 | * |
||
105 | * @return AuthorizeRequest |
||
106 | */ |
||
107 | 2 | public function purchase(array $parameters = []) |
|
111 | |||
112 | /** |
||
113 | * Create a refund request. |
||
114 | * |
||
115 | * @param array $parameters |
||
116 | * |
||
117 | * @return RefundRequest |
||
118 | */ |
||
119 | 3 | public function refund(array $parameters = []) |
|
123 | |||
124 | /** |
||
125 | * @param int $value Merchant ID |
||
126 | * |
||
127 | * @return Gateway |
||
128 | */ |
||
129 | 5 | public function setMerchantId($value) |
|
135 | |||
136 | /** |
||
137 | * @param int $value Portal ID |
||
138 | * |
||
139 | * @return Gateway |
||
140 | */ |
||
141 | 5 | public function setPortalId($value) |
|
147 | |||
148 | /** |
||
149 | * @param string $value MD5 hash of the security key generated for this portal. (generated and delivered by BillPay) |
||
150 | * |
||
151 | * @return Gateway |
||
152 | */ |
||
153 | 5 | public function setSecurityKey($value) |
|
159 | } |
||
160 |