driver_class = $driver_class; } public function authorizeView($data) { } public function authorizeRequest($request) { } public function paymentView($data) { } public function processPaymentResponse($request) { } /* Helpers */ /* You will need some helpers to handle successful and unsuccessful responses Some considerations after a succesful transaction include: Logging of events: success +/- failure Recording a payment Notifications */ }