protected function setCompletePage(array $order, $model, $controller)
    {
        if ($order['payment'] === 'stripe') {

            $this->order = $model;
            $this->data_order = $order;
            $this->controller = $controller;

            $this->submitPayment();

            $controller->setJs('https://js.stripe.com/v2');
            $controller->setJs('system/modules/stripe/js/common.js');
            $controller->setJsSettings('stripe', array('key' => $this->getPublicKey()));
        }
    }
protected function setCompletePage(array $order, $model, $controller)
    {
        if ($order['payment'] === 'stripe') {

            $this->order = $model;
            $this->data_order = $order;
            $this->controller = $controller;

            $this->submitPayment();

            $controller->setJs('https://js.stripe.com/v2');
            $controller->setJs('system/modules/stripe/js/common.js');
            $controller->setJsSettings('stripe', array('key' => $this->getPublicKey()));
        }
    }
protected function setCompletePage ( array $ order , $ model , $ controller ) { if ( $ order [ 'payment' ] === 'stripe' ) { $ this -> order = $ model ; $ this -> data_order = $ order ; $ this -> controller = $ controller ; $ this -> submitPayment ( ) ; $ controller -> setJs ( 'https://js.stripe.com/v2' ) ; $ controller -> setJs ( 'system/modules/stripe/js/common.js' ) ; $ controller -> setJsSettings ( 'stripe' , array ( 'key' => $ this -> getPublicKey ( ) ) ) ; } }
Set up order complete page
@param array $order
@param \gplcart\core\models\Order $model
@param \gplcart\core\controllers\frontend\Controller $controller
Set up order complete page