commit
c1b2b27c92
1 changed files with 2 additions and 6 deletions
|
|
@ -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…
Add table
Reference in a new issue