private function makeSession($response, $method)
    {
        if ($method === 'pagseguro_credit_card') {
            $this->session()->setData([
                'pagseguro_payment' => [
                    'payment_type'  => $method,
                    'order_id'      => $this->orderId,
                ]
            ]);
        } else {
            $this->session()->setData([
                'pagseguro_payment' => ['payment_link' => $response->getPaymentLink(),
                    'payment_type'  => $method,
                    'order_id'      => $this->orderId,
                ]
            ]);
        }
    }
private function makeSession($response, $method)
    {
        if ($method === 'pagseguro_credit_card') {
            $this->session()->setData([
                'pagseguro_payment' => [
                    'payment_type'  => $method,
                    'order_id'      => $this->orderId,
                ]
            ]);
        } else {
            $this->session()->setData([
                'pagseguro_payment' => ['payment_link' => $response->getPaymentLink(),
                    'payment_type'  => $method,
                    'order_id'      => $this->orderId,
                ]
            ]);
        }
    }
private function makeSession ( $ response , $ method ) { if ( $ method === 'pagseguro_credit_card' ) { $ this -> session ( ) -> setData ( [ 'pagseguro_payment' => [ 'payment_type' => $ method , 'order_id' => $ this -> orderId , ] ] ) ; } else { $ this -> session ( ) -> setData ( [ 'pagseguro_payment' => [ 'payment_link' => $ response -> getPaymentLink ( ) , 'payment_type' => $ method , 'order_id' => $ this -> orderId , ] ] ) ; } }
Create new pagseguro payment session data

@param $response
Create new pagseguro payment session data