#devin-Connect
1 messages · Page 1 of 1 (latest)
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?
ok
Thanks for the waiting, so you want to know how use API to create Connect accounts?
Here is API for account creation https://stripe.com/docs/api/accounts/create and I'd recommend to read the Stripe Connect doc first https://stripe.com/docs/connect
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."
}
}
It says you haven't sign up for Connect, you can click on the link to sign up.
any api there for sign up... can you share that api..
You need to complete the sign up via the Dashboard, there is no API.
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?..
Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details
acct_1KGG7aJpHoE1SDYd
Can you click on the Get started button to finish the sign up?
thanks.. the connect account was created successfully.. what we do next?.. next step?..
I'ld suggest go through https://stripe.com/docs/connect and decide what you want to do next.
what is difference between 'type' => 'express' vs 'type' => 'custom'... ? which one i follow?