mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Stripe ConnecT
This commit is contained in:
parent
7860d13559
commit
39f3c55e8e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user