mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for redirect after stripe connect
This commit is contained in:
parent
3772d2a165
commit
631527e8e3
@ -54,6 +54,8 @@ class StripeConnectController extends BaseController
|
|||||||
$redirect_uri = config('ninja.app_url').'/stripe/completed';
|
$redirect_uri = config('ninja.app_url').'/stripe/completed';
|
||||||
$endpoint = "https://connect.stripe.com/oauth/authorize?response_type=code&client_id={$stripe_client_id}&redirect_uri={$redirect_uri}&scope=read_write&state={$token}";
|
$endpoint = "https://connect.stripe.com/oauth/authorize?response_type=code&client_id={$stripe_client_id}&redirect_uri={$redirect_uri}&scope=read_write&state={$token}";
|
||||||
|
|
||||||
|
\Illuminate\Support\Facades\Cache::pull($token);
|
||||||
|
|
||||||
return redirect($endpoint);
|
return redirect($endpoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,7 +150,8 @@ class StripeConnectController extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
//response here
|
//response here
|
||||||
return view('auth.connect.completed', ['url' => $redirect_uri]);
|
// return view('auth.connect.completed', ['url' => $redirect_uri]);
|
||||||
|
return redirect($redirect_uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user