Stripe ConnecT

This commit is contained in:
David Bomba 2021-05-10 12:49:16 +10:00
parent 7860d13559
commit 39f3c55e8e

View File

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