mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #5652 from turbo124/v5-develop
Fixes for Stripe Connect
This commit is contained in:
commit
1644292bdb
@ -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)
|
if(!$company_gateway)
|
||||||
$company_gateway = CompanyGatewayFactory::create($request->getCompany()->id, $request->getContact()->id);
|
$company_gateway = CompanyGatewayFactory::create($request->getCompany()->id, $request->getContact()->id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user