Merge pull request #5654 from turbo124/v5-develop

Stripe ConnecT
This commit is contained in:
David Bomba 2021-05-10 12:49:32 +10:00 committed by GitHub
commit c1b2b27c92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,15 +57,11 @@ class StripeConnectController extends BaseController
}
$stripe = new \Stripe\StripeClient(
config('ninja.ninja_stripe_key')
);
$account = $stripe->accounts->create($data);
$account = Account::create($data);
nlog($account);
$link = $stripe->accountLinks->create($account->id, $token);
$link = Account::link($account->id, $token);
nlog($link);