#mcgarnacle_api
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/1237314226675253279
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey
I'm trying to collect the stripe fee before it hits the connected account.
Can you provide a concrete example of what you want to achieve?
Hi there
Sure - the player owes the manager $100, I calculate the fee - $1.70 and the player will pay 101.70 and then I want to stripe take the 1.70 and transfer 100 to the manager's connected account
The fee is created, but I don't think the transfer to the final connected account is correct?
What about the Connect Account? the manager is a connect account ?
Yes - that's correct
and you as a platform account, you don't take any fee ?
At the moment, we charge a separate subscription (via Stripe) for the platform
For now, I just want a passthrough with the exact Stripe fee paid for by the player
There's a few other minor issues - my fee calculation result is slightly different from Stripe's.
And Stripe is collecting tax, when I have asked it not to.
For now, I just want a passthrough with the exact Stripe fee paid for by the player
I see, you can't actually compute the exact Stripe fee, but you can use is this formula in order to estimate it:
https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers
And Stripe is collecting tax, when I have asked it not to.
Can you share an example ?
Yes - I had another formula which was within a couple of cents, but the one you've provided is even more inaccurate ๐
Ah this is included in the Fees, I though Stripe collecting your Tax on your behalf without configuring that.
It shouldn't - and if it is , it out by an order of 100
The tax in Asutralia on 132 would be $13.2
I don't know honestly how the tax in Stripe fees are computed
but I invite you to reach out to Stripe Support at https://support.stripe.com/contact if you want to have more insights about that
Sorry, but this channel is for technical integration question only.
I will, for sure
Yes - tax and fees are minor
What I am trying to do is make sure I can subtract the fee from the amount that goes to the connected account - via API
Because at the moment I am being charged the fee and passing that fee amount on top of the target amount to the manager.
You know there is 3 types of Connect charges: Destination, Separate and Direct. With Destiantion and Separate, the platform account is responsible for paying Stripe fees while with Direct Charge the connect account is responsible for paying Stripe fees.
Are you ok to use Direct charges in your case? https://stripe.com/docs/connect/direct-charges in that case the Connect Account will pay the Stripe Fees
Okay - so when I create the checkout session -it
- it's using the connected account as the host, not mine?
Then I don't need the fee, I just need to calculate it for the payment amount?
I see - with the Stripe-Account header...
yes
Okay - that's a solid plan - I'll get in have a crack. Thanks - I really appreciate you following my issue through.
Happy to help!
Here are more details about using the Stripe Account Header:
https://stripe.com/docs/connect/authentication#stripe-account-header
looks good - have realised that I need to set up connected webhooks now!
Yes here is a good guide for that just in case:
https://docs.stripe.com/connect/webhooks
Okay - that all seems to work.
I have one final question?
I can see that the fee is being handled in the connected account.
The payment in the checkout session webhook says the gross amount:
So I can reconcile at my end, how can I tell that 799.46 is being returned.
I need to be able to say: You asked for 800 and you got 799.46
it would involve looking at the balance_transaction objects associated with the payment object
see the diagram at https://docs.stripe.com/connect/direct-charges?platform=web&ui=elements#flow-of-funds-with-fees for what objects are involved