#akshatg_code

1 messages ¡ Page 1 of 1 (latest)

haughty horizonBOT
#

👋 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.

silk raptor
#

HIii sunfkinnnnnn

#

Hiii there!!

worldly shell
#

Do you have a specific question about platform payouts?

#

Related to coding with the APIs?

silk raptor
#

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.

worldly shell
#

What is your question?

silk raptor
#

move funds from one Connected Account to another

worldly shell
#

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.

silk raptor
#

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

worldly shell
#

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?

silk raptor
#

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

worldly shell
#

If they are both connected accounts, one cannot pay the other

silk raptor
#

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??

worldly shell
#

Yes, that is what I have been saying

#

Or i have to first pay to platform then platform to driver??

silk raptor
#

Okayyyy

#

I did payout in test mode so how could i check it in stripe dashboard

#

I did this 2 euro

worldly shell
silk raptor
#

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

worldly shell
#

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

silk raptor
worldly shell
#

In that object, you can check the status property

#

I cannot help much with the Dashboard. That isn't something we focus on here

silk raptor
#

So if succeeded then it means payout is success and intitated to bank properly

haughty horizonBOT
balmy sleet
#

Hello! I'm taking over and catching up...

silk raptor
#

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?

balmy sleet
#

That's a Transfer object, not a Payout object. The Transfer object represents money moving from your account to a connected account's balance.

silk raptor
#

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?

balmy sleet
#

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.

silk raptor
#

Okay Okay Thanks Mate!!

#

YOu guys are really insane..

#

Stripe support is bestt!!!!!!!!!!!!!!!!!!!!!!!

#

Respect++ for stripeee

balmy sleet
#

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.

silk raptor
#

Okay good by and thanks alot