protected function finishPurchase()
    {
        if ($this->response->isSuccessful()) {
            $this->updateOrderStatus();
            $this->addTransaction();
            $this->redirectSuccess();
        } else if ($this->response->isRedirect()) {
            $this->response->redirect();
        } else {
            $this->redirectError();
        }
    }
protected function finishPurchase()
    {
        if ($this->response->isSuccessful()) {
            $this->updateOrderStatus();
            $this->addTransaction();
            $this->redirectSuccess();
        } else if ($this->response->isRedirect()) {
            $this->response->redirect();
        } else {
            $this->redirectError();
        }
    }
protected function finishPurchase ( ) { if ( $ this -> response -> isSuccessful ( ) ) { $ this -> updateOrderStatus ( ) ; $ this -> addTransaction ( ) ; $ this -> redirectSuccess ( ) ; } else if ( $ this -> response -> isRedirect ( ) ) { $ this -> response -> redirect ( ) ; } else { $ this -> redirectError ( ) ; } }
Performs final actions on success payment
Performs final actions on success payment