#paul_connect-reconciliation
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/1280936917675933748
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
So you essentially want to refund all the application fees so you can debit the Connect account for them at a later time?
Are you using Destination charges, Direct charges, or Separate Charges and Transfers?
I believe direct
return $this->stripe->accounts->create([
'country' => 'US',
'controller' => [
'fees' => ['payer' => 'application'],
'losses' => ['payments' => 'stripe'],
'stripe_dashboard' => ['type' => 'none'],
],
'capabilities' => [
'bank_transfer_payments' => ['requested' => true],
'card_payments' => ['requested' => true],
'us_bank_account_ach_payments' => ['requested' => true],
'us_bank_transfer_payments' => ['requested' => true],
'transfers' => ['requested' => true],
]
]);
So it sounds like you're wanting to do 2 things here:
- aggregate the Stripe fees that were paid to Stripe by the Connect Account, and
- aggregate all the Application Fees that were paid to you (the platform) from the Connect Account
Once aggregated, you want to send those amounts to the Connect Account's balance to essentially refund them. Am I following so far?
@unkempt sable is taking over, so you're in good hands from here
haha I was hoping you'd finish it since the question didn't make sense to me, oh well :p
So yeah I don't really get what you are trying to do after reading the question/exchange a couple times @polar mortar. Does what @snow tulip say make sense? If so, anything else blocking you?
paul_connect-reconciliation
this is correct, maybe I can add @hollow valley who is also working on this with me?
happy to help if you have a specific follow up question!
Hi, basically we are creating invoices on connected accounts and when the end user pays the invoice, we have added an application fee will creating invoice, now we want that fee to be paid back to connected accounts and just keep track of that fee (which we can in our db) and at the end of the month we debit the connected accounts.
Before we tired without application fee and try to calulcate fee from our side but we are not able to create a charge on connected account and tracking the fee is very difficult in that case because if stripe changes the formula of fee tomorrow then we should to change it everytime
Sorry this looks like the same question that my colleague answered already right?
yes, just added a bit more context to it, how can we achieve it?
yeah unfortunately I still really don't get the question because it's too high level.
What exactly are you not able to do? Please talk about the exact API request(s) you are making and what's missing
Do you have more details/specifics so I can help you?
Ultimately we would like to aggregate all fees from our application fee as well as stripe's fees, add 1%, and debit the connected account (via a charge? transfer?) monthly.
We are looking for best practice in this case, where our connected accounts need to pay all fees monthly. Medical and legal fields require this.
Should we apply a top up at the invoice transaction? or before payout?
The connected account needs to charge $100 and recieve $100. then be billed for all fees +1% monthly
Today we are using the following APIs:
https://docs.stripe.com/api/accounts?lang=php
https://docs.stripe.com/api/invoices/object?lang=php
https://docs.stripe.com/api/invoices/object?lang=php
๐ stepping in
Okay really what you want to do here is change your charge flow
You shouldn't be using Direct Charges at all here
Are all of your Connected Accounts in the same region as your platform?
yes
Okay then yeah what you want to do here is use Separate Charges & Transfers: https://docs.stripe.com/connect/separate-charges-and-transfers
So the Charges are created on your platform and the fees are assessed to your platform
You then create a separate Transfer for the full amount
And then at the end of the month you calculate the fees by reconciling the original payments
And you charge the Connected Account, likely through an Account Debit: https://docs.stripe.com/connect/account-debits
okay, makes sense, thank you
i've one doubt tho, when creating invoice here we are using auto_advance: true which means it will automatically create the payment intent and the link you sent above acc. to that we have to create our own payment intent everytime?
No you can use Invoices in place of creating PaymentIntents, that's fine.
Same idea
You just create the Charges on your platform either via Invoice or PaymentIntent
Then Transfer afterward
so instead of passing the Stripe-Account which takes actions on behalf of connected account and adds the charge to connected accounts balance, we don't use that and the payment will come into platform balance then transfer it to connected accounts? correct me if i'm wrong
Yep