#akash.bhaskar
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- akash.bhaskar, 10 minutes ago, 20 messages
- akash.bhaskar, 56 minutes ago, 10 messages
- akash.bhaskar, 4 hours ago, 9 messages
- akash.bhaskar, 1 day ago, 12 messages
- akash.bhaskar, 1 day ago, 12 messages
- akash.bhaskar, 1 day ago, 6 messages
and 4 more
when i sign up i give my bank/card details..so how do it get that id?
like i need to give the destination for getting the application fees
Hi! I'm taking over this thread.
can you clarify what you are trying to do exactly here? what's your end goal?
i am trying to transfer my applicaiton fees to my account
so how do i know the destination id for it?
what do you mean by "my accout"? Your Stripe account, your bank account, something else?
my stripe account
And what do you mean by "application fee"?
And what is "destination id"?
Please try to be more precise in your question
const paymentIntent = await stripe.paymentIntents.create(
{
amount: 1000,
currency: 'usd',
automatic_payment_methods: {
enabled: true,
},
application_fee_amount: 123,
},
{
stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
}
);
and what's your question?
how do i get stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
did you already create a connected account?
yup
then you can list all your connected accounts with this endpoint: https://stripe.com/docs/api/accounts/list
or directly find the ID in your Stripe dashboard here: https://dashboard.stripe.com/test/connect/accounts/overview
yeah but it shows only the connect if of users created connect account...but this one fee i am taking as fees..that id is not mentioned in the list..stripe owner
If you open https://dashboard.stripe.com/test/connect/accounts/overview, you should see all your connected account and their ID. It starts with acct_xxx. and you can use that for the {{CONNECTED_ACCOUNT_ID}} in the code you shared above.
no actually i created a stripe main account..so in that case how would i get the id?
Are you using Stripe Connect? If no, then you shouldn't use stripeAccount: '{{CONNECTED_ACCOUNT_ID}}' at all.
what are you trying to do? accept a regular payment?
in simple words...i am the owner and i have users paying for consultation..when the payment is done..a part of the amount goes to the consultant that is connected account...and the other part i take as the application fees which needs to be transfered to my account
got it! then for this to work:
- the consultant needs to have a Stripe account connected to your main account
- then use
stripeAccount: 'acct_xxx'in your API request - and to find the
acct_xxxID, check your dashboard here: https://dashboard.stripe.com/test/connect/accounts/overview
no no..i am speaking about getting the application fees
If you use the code below, it will automatically send 1,23$ to your own account and the remaining to the connected account:
const paymentIntent = await stripe.paymentIntents.create(
{
amount: 1000,
currency: 'usd',
automatic_payment_methods: {
enabled: true,
},
application_fee_amount: 123,
},
{
stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
}
);
is this not what you are trying to do?
yeah this should go the main account..that means the one who uses stripe..not the consultant
There's the main accoun (we call it a platform), that's you. And it will get the amount set in application_fee_amount.
Then there's the connected account, that's the consultant. And it will get the remaining amount.
Can you share the request ID (req_xxx)? You can find it here https://dashboard.stripe.com/test/logs
req_vv0sM7AXoUJV7l
you forgot to set the Stripe-Account header, so it's expected to not work https://stripe.com/docs/connect/authentication
yeah for that i need to know my platforms id right? how can i get it
no, you need to connected account ID
and I told you how to get it:
you can list all your connected accounts with this endpoint: https://stripe.com/docs/api/accounts/list
or directly find the ID in your Stripe dashboard here: https://dashboard.stripe.com/test/connect/accounts/overview
i am sorry if am confusing...but i need to send the application fees to my stripe platform account
do i need to create a new connect account for my platform?
the application fee will be automatically sent to your platform with the code you shared. the only think missing is you need to set the Stripe-Account header to the ID of the connected account.
so u mean that my platform should also have a connected account like the other consultants?
but i do see one id over here
I'm completely lost, sorry
i understand,sorry that i have been confusing
Let's take a step back
You have a Stripe account, correct? And you also have some Stripe accounts connected to your own Stripe account, correct?
yup,absolutely
And you want to create a payment, and some moneys goes to your own Stripe account, and some money goes to one of the connected account. Correct?
exactly
Then can you try running this code with your own Stripe account:
const paymentIntent = await stripe.paymentIntents.create(
{
amount: 1000,
currency: 'usd',
automatic_payment_methods: {
enabled: true,
},
application_fee_amount: 123,
},
{
stripeAccount: 'acct_xxx',
}
);
Just make sure to replace acct_xxx with the ID of the connected account (so not your own account).
And it will work
You need to use the Stripe API key of your own account, and set the connected account ID in stripeAccount.
yeah but in the connected account id list i dont see the id of my stripe platform account
why are you talking about the platform account ID? you don't need it
the application fee amount goes to my platform right?
yes, but you don't need its ID.
you use the Stripe API key of the platform to make the API request. And the application fee goes directly to your platform account.
the only ID you need to set is the ID of the connected account.
👋 taking over as soma needs to step away soon
hey
This seems like a long running thread, can you give me a quick summary of what you're blocked on?
yeah so for example, i am an owner..and my platform accepts payments from user for some consultation, from the total amount the user pays few amount goes to the consultants and the remaining comes to my stripe platform as application fees
so when i create a payment intent...i need to specify the stripeAccount..but am not able to find itr
We have a step by step guide here for direct charges flow
https://stripe.com/docs/connect/enable-payment-acceptance-guide