#mcgarnacle_api

1 messages ยท Page 1 of 1 (latest)

manic flaxBOT
#

๐Ÿ‘‹ 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.

leaden flame
#

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?

raw rover
#

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?

leaden flame
#

What about the Connect Account? the manager is a connect account ?

raw rover
#

Yes - that's correct

leaden flame
#

and you as a platform account, you don't take any fee ?

raw rover
#

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.

leaden flame
#

And Stripe is collecting tax, when I have asked it not to.
Can you share an example ?

raw rover
raw rover
leaden flame
# raw rover

Ah this is included in the Fees, I though Stripe collecting your Tax on your behalf without configuring that.

raw rover
#

It shouldn't - and if it is , it out by an order of 100

#

The tax in Asutralia on 132 would be $13.2

leaden flame
#

I don't know honestly how the tax in Stripe fees are computed

#

Sorry, but this channel is for technical integration question only.

raw rover
#

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.

leaden flame
#

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.

raw rover
#

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

leaden flame
#

yes

raw rover
#

Okay - that's a solid plan - I'll get in have a crack. Thanks - I really appreciate you following my issue through.

leaden flame
#

Happy to help!

raw rover
#

looks good - have realised that I need to set up connected webhooks now!

leaden flame
rigid fossilBOT
raw rover
#

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

sleek ravine
#

it would involve looking at the balance_transaction objects associated with the payment object