public function cleanSession()
    {
        // remove checkout session parameters
        $this->session->remove('select-delivery');
        $this->session->remove('delivery-id');
        $this->session->remove('existing-delivery-address');
        $this->session->remove('transaction-id');

        // abandon cart
        $this->cartProvider->abandonCart();
    }
public function cleanSession()
    {
        // remove checkout session parameters
        $this->session->remove('select-delivery');
        $this->session->remove('delivery-id');
        $this->session->remove('existing-delivery-address');
        $this->session->remove('transaction-id');

        // abandon cart
        $this->cartProvider->abandonCart();
    }
public function cleanSession ( ) { // remove checkout session parameters $ this -> session -> remove ( 'select-delivery' ) ; $ this -> session -> remove ( 'delivery-id' ) ; $ this -> session -> remove ( 'existing-delivery-address' ) ; $ this -> session -> remove ( 'transaction-id' ) ; // abandon cart $ this -> cartProvider -> abandonCart ( ) ; }
Clean checkout parameters from session and void the shopping cart
Clean checkout parameters from session and void the shopping cart