mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
157 - Authorizing with Stripe
This commit is contained in:
23
app/Http/Controllers/Backstage/StripeConnectController.php
Normal file
23
app/Http/Controllers/Backstage/StripeConnectController.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Backstage;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
class StripeConnectController extends Controller
|
||||
{
|
||||
public function authorizeRedirect()
|
||||
{
|
||||
$url = vsprintf('%s?%s', [
|
||||
'https://connect.stripe.com/oauth/authorize',
|
||||
http_build_query([
|
||||
'response_type' => 'code',
|
||||
'scope' => 'read_write',
|
||||
'client_id' => config('services.stripe.client_id'),
|
||||
]),
|
||||
]);
|
||||
|
||||
return redirect($url);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user