#Jewe-connect

1 messages · Page 1 of 1 (latest)

frosty spade
#

Hello 👋
Give me a moment to catch up here

#

Ah so you're using direct charges and want Stripe fees to be paid by the platform

celest carbon
#

yes, that'd be ideal

frosty spade
#

Hmm there's isn't a straight forward way to do this with direct charges. With destination charges, Platform is responsible for Stripe fees.

#

You could charge the default application fee first. Once the charge is made, you look at the fee we charged and you then refund the extra amount on the fee automatically: https://stripe.com/docs/api#create_fee_refund
While this works it is confusing, especially when doing some reporting.

celest carbon
#

Hm ... okay. I understand that with destination charges i'd lose the Connect users branding etc. right?

frosty spade
#

Can you expand on that?

celest carbon
#

i mean the invoice which is send to the client (in this case the Connect users client) would then state the platforms name and not the Connect users name anymore.

#

btw. I currently implemented a workaround that estimates the stripe fee and reduces the application_fee. But somehow i always end up a few percent off.
My question is more of a general improvment

frosty spade
#

Ah okay
Let me look into that

celest carbon
#

my calulation is
(self.total * (rate - 0.029) - 0.25).clamp(0, Float::INFINITY)

where rate is the the total percentage, i'd like to charge

frosty spade
#

gotcha. yeah that'd likely be the workaround with direct charges
i'm not sure about the branding settings w/ destination charges so looking

celest carbon
#

i just learned about "on_behalf_of" and will check this out.
Thank you so far.

frosty spade
#

Yeah I was going to suggest that and send additional resources but got pulled away with another question
Discord is busy today

#

Apologies for the wait

#

Appreciate your patience