private function whenSuccess($response, $method)
    {
        $this->makeSession($response, $method);
        return $this->result->setData([
            'success' => true,
            'payload' => [
                'redirect' => sprintf('%s%s', $this->baseUrl(), 'pagseguro/direct/success')
            ]
        ]);
    }
private function whenSuccess($response, $method)
    {
        $this->makeSession($response, $method);
        return $this->result->setData([
            'success' => true,
            'payload' => [
                'redirect' => sprintf('%s%s', $this->baseUrl(), 'pagseguro/direct/success')
            ]
        ]);
    }
private function whenSuccess ( $ response , $ method ) { $ this -> makeSession ( $ response , $ method ) ; return $ this -> result -> setData ( [ 'success' => true , 'payload' => [ 'redirect' => sprintf ( '%s%s' , $ this -> baseUrl ( ) , 'pagseguro/direct/success' ) ] ] ) ; }
Return when success

@param $response
@return $this
Return when success