#devin-Connect

1 messages · Page 1 of 1 (latest)

green swallow
#

Hi there, please remove your publishable and secret key, Discord is a public channel

#

I have deleted the message.

#

Can you repeat the main question again?

pseudo onyx
#

ok

green swallow
#

Thanks for the waiting, so you want to know how use API to create Connect accounts?

pseudo onyx
#

Hi we try to create "Connect accounts" using php stripe library, but we got error,

#

Request :-

$stripe = new \Stripe\StripeClient('sk_test_XXXXXXXXXXXXX');

$stripe->accounts->create([
'type' => 'custom',
'country' => 'US',
'email' => 'testuser.one@gmail.com',
'capabilities' => [
'card_payments' => ['requested' => true],
'transfers' => ['requested' => true],
],
]);

Response:-

{
"status": false,
"error": {
"classname": "Stripe\Exception\InvalidRequestException",
"message": "You can only create new accounts if you've signed up for Connect, which you can learn how to do at https://stripe.com/docs/connect."
}
}

green swallow
#

It says you haven't sign up for Connect, you can click on the link to sign up.

pseudo onyx
#

any api there for sign up... can you share that api..

green swallow
#

You need to complete the sign up via the Dashboard, there is no API.

pseudo onyx
#

we already sign in stripe account in browser, in the same browser we run that account creation api.. but still we getting the same error.. what we missed?..

green swallow
#

Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details

pseudo onyx
#

acct_1KGG7aJpHoE1SDYd

green swallow
#

Can you click on the Get started button to finish the sign up?

pseudo onyx
#

thanks.. the connect account was created successfully.. what we do next?.. next step?..

green swallow
pseudo onyx
#

what is difference between 'type' => 'express' vs 'type' => 'custom'... ? which one i follow?