I'm having an issue with the below method and I think I'm doing something wrong. Just looking for any guidance / oversights that someone might pick up on. Thank you!
Per the API documentation:
$stripe = new \Stripe\StripeClient(
'sk_test_xxxxxxxxxx'
);
$stripe->accounts->createPerson(
'acct_xxxxxxxxx',
['first_name' => 'Jane', 'last_name' => 'Diaz']
);
We're calling using the below where $platformID is a variable that holds the account ID and $stripeData is the array of person data. However we're getting a 500 error back but believe it's the SDK because our call isn't even making it to Stripe.
$stripeInteraction = \Stripe\Account::createPerson($platformID, $stripeData);
I just have a feeling I'm missing something silly but need another set of eyes. I really appreciate any guidance!