protected function completePayment()
    {
        if ($this->controller->isQuery('paid')) {
            $gateway = $this->getGateway();
            $this->response = $gateway->completePurchase($this->getPurchaseParams())->send();
            $this->processResponse();
        }
    }
protected function completePayment()
    {
        if ($this->controller->isQuery('paid')) {
            $gateway = $this->getGateway();
            $this->response = $gateway->completePurchase($this->getPurchaseParams())->send();
            $this->processResponse();
        }
    }
protected function completePayment ( ) { if ( $ this -> controller -> isQuery ( 'paid' ) ) { $ gateway = $ this -> getGateway ( ) ; $ this -> response = $ gateway -> completePurchase ( $ this -> getPurchaseParams ( ) ) -> send ( ) ; $ this -> processResponse ( ) ; } }
Performs actions when purchase is completed
Performs actions when purchase is completed