#banyman-express vs standard

1 messages · Page 1 of 1 (latest)

tepid tiger
#

👋 happy to help

#

do they have a Standard Account?

#

or another Express Account?

untold drum
#

I don't know what type of account they have. it is important for me that they log in through an existing account. Yesterday here in the support service they told me that it doesn't matter what type of account they have, so I created Type Express for everyone.

tepid tiger
#

it's really more complex than that

untold drum
#

How can I solve this?

tepid tiger
#

let me try to explain the difference

untold drum
#

after building an account, I get an account link, which I redirect the user to for authorization in stripe..

tepid tiger
#

you can either link existing Standard Accounts to your Platform Account or you can create a new Express Account that cannot be shared with another Platform

untold drum
#

I need to be sure to link an existing account to my platform. The next step is to generate a report in my user account and download this report.

How do I redirect the user to Authorize an existing account.

tepid tiger
untold drum
final ridge
#

Does the user automatically return to which page?
The redirect_uri you set in the Dashboard

#

And how can I get the return data so that I can link his account in my database and recognize his Account Id
See step 4 on that page

untold drum
#

Can this link be used only in test mode or in live too?

final ridge
#

Which curl method?

final ridge
untold drum
#

state - for which is this parameter?

final ridge
#

Read step 4. Once the user is directed to your redirect_uri you need to make the additional API call their using the code parameter in the URL

#

Really you should just use Account Links and do hosted onboarding

untold drum
#

\Stripe\Stripe::setApiKey('sk_live_51H...
');

$response = \Stripe\OAuth::token([
'grant_type' => 'authorization_code',
'code' => Get('code'),
]);

// Access the connected account id in the response
$connected_account_id = $response->stripe_user_id;

/*
{
"token_type": "bearer",
"stripe_publishable_key": "{PUBLISHABLE_KEY}",
"scope": "read_write",
"livemode": false,
"stripe_user_id": "{ACCOUNT_ID}",
"refresh_token": "{REFRESH_TOKEN}",
"access_token": "{ACCESS_TOKEN}"
}
*/

if (!empty($connected_account_id->stripe_user_id)) {

ExecuteStatement("UPDATE accounts SET
    stripe_account = '" . $connected_account_id->stripe_user_id . "',
    stripe_publishable_key = '" . $connected_account_id->stripe_publishable_key . "',
    stripe_user_id = '" . $connected_account_id->stripe_user_id . "'
    WHERE id = '" . $userid ."' ");

}

ob_start();
header('Location: getfunds');
ob_end_flush();
die();    

After redirect on my page I have empty data.

#

this Code I have in my page

#

What I need to do in this page too?

final ridge
#

I guess at that point the onboarding is complete, so you'd provision access to your app/service

untold drum
#

But I don't have any data in my database. And I don't see user account stripe In my connect section On dashboard.

dreamy junco
#

I need to use an existing account for integration.
That's not possible for Express.

#

But I don't have any data in my database.
not sure how we can help you with that? it's your code and your database, we can't debug that as well as you can.

#

And I don't see user account stripe In my connect section On dashboard.
did your code run? What was the value of $connected_account_id when that code executed?

untold drum
untold drum
# dreamy junco > And I don't see user account stripe In my connect section On dashboard. did yo...

Slim Application Error Type: Stripe\Exception\ApiConnectionException Code: 0 Message: Unexpected error communicating with Stripe. If this problem persists, let us know at support@stripe.com. (Network error [errno 92]: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)) File: /home/mei/public_html/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php Line: 579 Trace: #966284336129273886

dreamy junco
#

hmm, interesting error

#

what version of our stripe-php library are you using?

untold drum
#

v 8.11

dreamy junco
#

do you know what version of PHP and the libcurl package you are using?

untold drum
fair silo
#

The call to https://connect.stripe.com/connect/default/oauth/test should be a POST response here

#

Or are you talking about another call in that doc?

untold drum
fair silo
#

The data should arrive as a GET to the return URL on your site and then you will be making a POST to stripe's OAuth endpoint.

#

Is that what you are asking or am I missing the question a bit?