public function callback($request)
    {
        // If post data exists, process. Otherwise provide error
        if ($this->payment_handler === null) {
            // Redirect to error page
            return $this->redirect(Controller::join_links(
                Director::BaseURL(),
                $this->config()->url_segment,
                'complete',
                'error'
            ));
        }
        
        // Hand the request over to the payment handler
        return $this
            ->payment_handler
            ->handleRequest($request, $this->model);
    }
public function callback($request)
    {
        // If post data exists, process. Otherwise provide error
        if ($this->payment_handler === null) {
            // Redirect to error page
            return $this->redirect(Controller::join_links(
                Director::BaseURL(),
                $this->config()->url_segment,
                'complete',
                'error'
            ));
        }
        
        // Hand the request over to the payment handler
        return $this
            ->payment_handler
            ->handleRequest($request, $this->model);
    }
public function callback ( $ request ) { // If post data exists, process. Otherwise provide error if ( $ this -> payment_handler === null ) { // Redirect to error page return $ this -> redirect ( Controller :: join_links ( Director :: BaseURL ( ) , $ this -> config ( ) -> url_segment , 'complete' , 'error' ) ) ; } // Hand the request over to the payment handler return $ this -> payment_handler -> handleRequest ( $ request , $ this -> model ) ; }
This method can be called by a payment gateway to provide
automated integration.

This action performs some basic setup then hands control directly
to the payment handler's "callback" action.

@param $request Current Request Object
This method can be called by a payment gateway to provide automated integration .