#mahiman_code
1 messages ยท Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mahiman_code, 19 hours ago, 65 messages
- mahiman_connected-accounts, 1 day ago, 14 messages
- mahiman_code, 1 day ago, 3 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1240609364541308942
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Yep, an Account needs transfers capability in order to be able to payout funds
How are you onboarding accounts to provide verification info?
But I've added the transfer capablitiy in the code when connecting the account
Is the account onbaorded? Is payouts_enabled: true set on the acct_xxx?
$company_name = $bank_data['account_holder_name'];
$industry = "5734";
$ip = '0.0.0.0';
$routing_number = $bank_data['routing_number'];
$account_number = $bank_data['account_number'];
$currency = $bank_data['currency'];
$first_name = $bank_data['account_holder_name'];
$last_name = '';
$country = $bank_data['country_name'];
$array_data = "business_type=individual&individual[first_name]=" . $first_name . "&individual[last_name]=" . $last_name . "&capabilities[card_payments][requested]=true&capabilities[transfers][requested]=true&type=custom&country=GB&external_account[object]=bank_account&external_account[country]=" . $country . "&external_account[currency]=" . $currency . "&external_account[routing_number]=" . $routing_number . "&external_account[account_number]=" . $account_number . "&tos_acceptance[date]=" . time() . "&tos_acceptance[ip]=" . $ip . "&company[name]=" . $company_name . "&company[address][country]=" . $country . "&company[owners_provided]=true" . "&company[directors_provided]=true&company[executives_provided]=true&business_profile[mcc]=" . $industry;
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.stripe.com/v1/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => $array_data,
CURLOPT_HTTPHEADER => array(
"authorization: Bearer " . env('STRIPE_SECRET'),
"content-type: application/x-www-form-urlencoded"
),
));
$res = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
$rs = json_decode($res);
this the code, do i need to do anything after this?
Yes, that's just an API request to create the account. You need to onboard it and provide verification info: https://docs.stripe.com/connect/onboarding
Learn about the different options for onboarding your connected accounts.
Please ellaborate moere on this
Do i need to do any verification or any code for this?
Did you read the doc? Creating an account isn't enough โ they need to be onboarded and verified before you can use the account to collect payments and payout funds
Is this a manuall process?
If I provide all the information like address and all other things in the account create API then will it work?
Again, read the doc. You'd use the Account Links API to generate a hosted onboarding UI session that you can provide test data to that will trigger the account into the desired state
So you're saying that after the account create via API, i need to use stripe onboarding UI to provide further inforamation and then it can work for payout right?
Yes
Where do I access the onboarding for created account?
I don't understand the question? Did you read the document I linked above? It explains the end to end process for onboarding accounts
I'm asking like once I created account via API, what would be the next step, like I need to do some other code the onboarding or do it manually from any links pleas explain