| 1 | <?php |
||
| 3 | class AuthorizeCaptureService extends PaymentService{ |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Initiate the authorisation process for on-site and off-site gateways. |
||
| 7 | * @param array $data returnUrl/cancelUrl + customer creditcard and billing/shipping details. |
||
| 8 | * @return ResponseInterface omnipay's response class, specific to the chosen gateway. |
||
| 9 | */ |
||
| 10 | public function authorize($data = array()) { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Complete authorisation, after off-site external processing. |
||
| 16 | * This is ususally only called by PaymentGatewayController. |
||
| 17 | * @return PaymentResponse encapsulated response info |
||
| 18 | */ |
||
| 19 | public function completeAuthorize() { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Do the capture of money on authorised credit card. Money exchanges hands. |
||
| 25 | * @return PaymentResponse encapsulated response info |
||
| 26 | */ |
||
| 27 | public function capture() { |
||
| 30 | |||
| 31 | } |
||
| 32 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.