#akshatg_code
1 messages ¡ Page 1 of 1 (latest)
đ 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/1339652096215224330
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- akshatg_code, 52 minutes ago, 67 messages
Do you have a specific question about platform payouts?
Related to coding with the APIs?
While doing signup i am creating the role base account either company or driver.
if (data.role === 'driver' data.role === 'company') {
const businessType = data.role === 'company' ? 'company' : 'individual';
const account = await stripe.accounts.create({
type: 'express',
country: data?.countryFlag || 'LV',
capabilities: {
card_payments: { requested: true },
transfers: { requested: true },
sepa_debit_payments: { requested: true },
},
business_type: businessType,
settings: {
payouts: {
schedule: {
interval: 'daily'
},
statement_descriptor: 'PAYOUT' //support for diffrent payoutt currencies
}
},
});
if (account) {
data.stripeMerchantAccountId = account?.id;
}
}
As you can see both are connected account i want i now instead of platform account ( whose stripe keys i am using).-
await stripe.transfers.create(
{
amount: Math.round(earningAmount * 100), // Convert to cents
currency: 'eur',
destination: stripeMerchantAccountId, // driver's connected account id
transfer_group: DRIVERPAYOUT${Date.now()},
}
);
I could make payout from this company connected account to my driver.
What is your question?
move funds from one Connected Account to another
Okay I am translating that into a question " How can I move funds from one Connected account to another?".
You would need to collect funds from one Connected Account into your Platform Account. Then you would create a Transfer from your Platform Account to the other Connected Account.
Okayyyy
SO what my case is :
While doing signup i am creating the role base account either company or driver.
if (data.role === 'driver' data.role === 'company') {
const businessType = data.role === 'company' ? 'company' : 'individual';
const account = await stripe.accounts.create({
type: 'express',
country: data?.countryFlag || 'LV',
capabilities: {
card_payments: { requested: true },
transfers: { requested: true },
sepa_debit_payments: { requested: true },
},
business_type: businessType,
settings: {
payouts: {
schedule: {
interval: 'daily'
},
statement_descriptor: 'PAYOUT' //support for diffrent payoutt currencies
}
},
});
Then As you can see both are connected account i want i now instead of platform account ( whose stripe keys i am using).-
await stripe.transfers.create(
{
amount: Math.round(earningAmount * 100), // Convert to cents
currency: 'eur',
destination: stripeMerchantAccountId, // driver's connected account id
transfer_group: DRIVERPAYOUT${Date.now()},
}
);
I could make payout from this company connected account to my driver.
So what should i do to make something my company role could pay to my driver role??
What type of account should i create for the company
The Platform must be the one to transfer funds to a Connected Account. There is no way around that.
So, now that we know that, what is it you are asking about?
As you can see both are connected account
So what should i do to make something my company role could pay to my driver role??
What type of account should i create for the company
If they are both connected accounts, one cannot pay the other
What type of account should i create for the company to payout to driver ?
Or i have to first pay to platform then platform to driver??
Yes, that is what I have been saying
Or i have to first pay to platform then platform to driver??
Okayyyy
I did payout in test mode so how could i check it in stripe dashboard
I did this 2 euro
You should see a payout in the payouts section https://dashboard.stripe.com/payouts
I could see something in event object-
{
"object": {
"id": "",
"object": "transfer",
"amount": 200,
"amount_reversed": 0,
"balance_transaction": "",
"created": ,
"currency": "eur",
"description": null,
"destination": "",
"destination_payment": "",
"livemode": false,
"metadata": {
},
"reversals": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/transfers/****/reversals"
},
"reversed": false,
"source_transaction": null,
"source_type": "card",
"transfer_group": "DRIVER_PAYOUT_*"
}
}
But how could i know that was it success or not
This is a transfer object, not a payout
If you want to get details on the Payout, you can retrieve a Payout object from the API
Under this:
https://dashboard.stripe.com/test/balance/all-activity
I could see the a entry of transaction
In that object, you can check the status property
I cannot help much with the Dashboard. That isn't something we focus on here
So if succeeded then it means payout is success and intitated to bank properly
??
Hello! I'm taking over and catching up...
Payouts don't have a "succeeded" property. The list of their possible status values is here: https://docs.stripe.com/api/payouts/object#payout_object-status
But i am not able to see it here-
{
"object": {
"id": "",
"object": "transfer",
"amount": 200,
"amount_reversed": 0,
"balance_transaction": "",
"created":,
"currency": "eur",
"description": null,
"destination": "*",
"destination_payment": "",
"livemode": false,
"metadata": {
},
"reversals": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/transfers//reversals"
},
"reversed": false,
"source_transaction": null,
"source_type": "card",
"transfer_group": "DRIVERPAYOUT"
}
}
Is it due i can not see in transit now because i just created it and payouts are automated to it may take time to be on the in transit page?
That's a Transfer object, not a Payout object. The Transfer object represents money moving from your account to a connected account's balance.
More info here: https://docs.stripe.com/api/transfers
So i am not able to see under /payouts
Is it due i can not see in transit now because i just created this payout and payouts are automated to 'Daily' so it may take time to be on the in transit page (https://dashboard.stripe.com/payouts)?
Right?
There may not be a Payout yet, depending on the timing. If the connected account is using automatic daily Payouts you need to wait for the daily Payout to be created after the Transfer happens.
Okay Okay Thanks Mate!!
YOu guys are really insane..
Stripe support is bestt!!!!!!!!!!!!!!!!!!!!!!!
Respect++ for stripeee
For example, let's say daily Payouts are created every day at midnight (not saying they are, just trying to give you a simplified example). If you create three Transfers to that connected account at 9AM, noon, and 3PM, those all need to settle in the connected account's available balance and only then will they be included in the Payout at midnight.
Okay good by and thanks alot