Merge pull request #5652 from turbo124/v5-develop

Fixes for Stripe Connect
This commit is contained in:
David Bomba 2021-05-10 11:38:09 +10:00 committed by GitHub
commit 1644292bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,9 +57,17 @@ class StripeConnectController extends BaseController
}
$account = Account::create($data);
$stripe = new \Stripe\StripeClient(
config('ninja.ninja_stripe_key');
);
$link = Account::link($account->id, $token);
$account = $stripe->accounts->create($data);
nlog($account);
$link = $stripe->accountLinks->create($account->id, $token);
nlog($link);
if(!$company_gateway)
$company_gateway = CompanyGatewayFactory::create($request->getCompany()->id, $request->getContact()->id);