invoice/controllers/Payment.php
protected function thanks($oPayment)
    {
        if ($oPayment->status->id === 'PROCESSING') {
            redirect($oPayment->urls->processing);
        } elseif ($oPayment->status->id !== 'COMPLETE') {
            show404();
        }

        $this->data['oPayment']       = $oPayment;
        $this->data['headerOverride'] = 'structure/header/blank';
        $this->data['footerOverride'] = 'structure/footer/blank';

        // --------------------------------------------------------------------------

        $oView = Factory::service('View');
        $this->loadStyles(NAILS_APP_PATH . 'application/modules/invoice/views/thanks/index.php');
        $oView->load('structure/header', $this->data);
        $oView->load('invoice/thanks/index', $this->data);
        $oView->load('structure/footer', $this->data);
    }
protected function thanks($oPayment)
    {
        if ($oPayment->status->id === 'PROCESSING') {
            redirect($oPayment->urls->processing);
        } elseif ($oPayment->status->id !== 'COMPLETE') {
            show404();
        }

        $this->data['oPayment']       = $oPayment;
        $this->data['headerOverride'] = 'structure/header/blank';
        $this->data['footerOverride'] = 'structure/footer/blank';

        // --------------------------------------------------------------------------

        $oView = Factory::service('View');
        $this->loadStyles(NAILS_APP_PATH . 'application/modules/invoice/views/thanks/index.php');
        $oView->load('structure/header', $this->data);
        $oView->load('invoice/thanks/index', $this->data);
        $oView->load('structure/footer', $this->data);
    }
protected function thanks ( $ oPayment ) { if ( $ oPayment -> status -> id === 'PROCESSING' ) { redirect ( $ oPayment -> urls -> processing ) ; } elseif ( $ oPayment -> status -> id !== 'COMPLETE' ) { show404 ( ) ; } $ this -> data [ 'oPayment' ] = $ oPayment ; $ this -> data [ 'headerOverride' ] = 'structure/header/blank' ; $ this -> data [ 'footerOverride' ] = 'structure/footer/blank' ; // -------------------------------------------------------------------------- $ oView = Factory :: service ( 'View' ) ; $ this -> loadStyles ( NAILS_APP_PATH . 'application/modules/invoice/views/thanks/index.php' ) ; $ oView -> load ( 'structure/header' , $ this -> data ) ; $ oView -> load ( 'invoice/thanks/index' , $ this -> data ) ; $ oView -> load ( 'structure/footer' , $ this -> data ) ; }
Shows a thank you page

@param  \stdClass $oPayment The invoice object

@return void
Shows a thank you page