#Fubaibai-payments
1 messages · Page 1 of 1 (latest)
hi! when you say "it's the wrong way", what do you mean exactly, why do you think that?
By the "wrong way" I mean if i put 10 (for 10%) in application fee that will not work because in the documentation we are talking about fix fee no ?
if you put 10 that means to take a fee of 10 cents
what you'd need to do is calculate in your code what 10% of the prices you're charging would be, and pass that amount
Hmm ok, and is there a way to take a fee of 10 percent (because customer can choose the price)
How can I know which price the customer has choose ?
can you clarify? They are using the Price your code passed for the line items(.setPrice(this.priceId)), so at the time you are calling this code you would know what they've chosen
In my stripe dashboard -> product category -> i've create a product with the type "customer choose : Let the payer decide on the amount to pay for your product"
hmm I'm not familiar with that to honest, let me look
Ok np thx a lot
ah ok, so yeah unfortunately there's no great solution here in Checkout today. In future I think we want to make this better by supporting setting a percentage directly for one time payments, but it doesn't exist today.
there isn't one unfortunately, this feature just isn't particularly compatible with Connect
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
sure
you can use Direct Charges but this means that the refunds, disputes, etc. should be handled by the Connect Account
Ok and in the other hand, what happen in my application_fee are less than stripes_fee ?
these are two separate transactions but basically you will get a transaction with a positive amount (the amount of the application fee) and a transaction with a negative amount (the amount of the stripe fees)
mmmh ok understood