#Ralph - Connect

1 messages · Page 1 of 1 (latest)

solar mirage
#

Hello! In PHP it would be something like this:

$account = $stripe->accounts->create(...);

// Now access the Account's ID using $account->id
atomic yarrow
#
  public function createAccountForDealer($dealerId)
  {

    $stripe = new \Stripe\StripeClient(env('STRIPE_ACCOUNT_KEY'));

    $stripe->accounts->create(['type' => 'standard']);

    return $stripe;
  }
}
#

Ah OK

#

I'd like to leave this thread open if possible incase I run into further issues, I was trying to return the entire $stripe object just to see what's in there but it was returning empty (the account WAS created though)

solar mirage
#

We keep threads open for a little while before archiving them, but we can't keep them open for long periods of time with no activity. If you need long-running async support you should write in here instead: https://support.stripe.com/contact/email

atomic yarrow
#

OK no worries I understand, thanks for your help! Is there a reason this isn't documented or is it assumed to be obvious?

solar mirage
#

I think it's a side-effect of the specific guide you're using, which is more high-level with some code snippets rather than a comprehensive code sample. It's good feedback though, we could make this clearer. I'll flag internally!

atomic yarrow
#

OK that makes sense. It's my first time doing payment processing so I really didn't want to mess anything up, was really hoping for a step-by-step but the docs are pretty strong regardless obviously. Is it an issue if I create multiple test 'connected' accounts using my test key?

#

Just so I can test each step one at a time