public function showConnect() { /* // getting paypal api context $apiContext = PayPalHelper::getApiContext(); // building up redirect url $redirectUrl = OpenIdSession::getAuthorizationUrl( route('paypal.buildToken'), array('profile', 'email', 'phone'), null, null, null, $apiContext ); */ // selecting logged in user $user = Auth::user(); // returning view return View::make('connect.connect', array('stripe_connected' => $user->isStripeConnected(), 'stripeButtonUrl' => OAuth2::getAuthorizeURL())); }