#arrow_best-practices

1 messages ¡ Page 1 of 1 (latest)

noble galeBOT
#

👋 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/1378001879400841330

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

stuck wing
#

Can you share a couple of examples to illustrate what you're trying to solve?

#

Note that explicitly passing on payment fees to customers is regulated in some jurisdictions and you need to make sure your implementation is in compliance with any applicable regulations.

#

Generally our recommendation is to set your pricing to account for this based on the payment methods you offer.

#

ie, instead of passing on eg 2% fees on the payment amount, instead set your pricing 2% higher overall.

#

This is your choice, though.

#

Generally speaking you cannot get the stripe fees for a payment until after it is complete/confirmed, since it depends on details we don't have until that time.

frigid rover
#

we understand about compiance and I understand about making it 2% higher but then stripe will take 2% on the amount that we set right ?

stuck wing
#

So if you want to know those fees before completing payment, you need to implement a flow that allows you to inspect the payment method details before confirmation (eg, server side confirm or two step using confirmation tokens) so you can calculate those fees based on the schedule that applies for your account for that payment method & customer etc.

stuck wing
frigid rover
#

ok got it there is not direct way to do it we need to find and add it to amount but my final question is as follow
let say fee is 2% and amount is 10 then we have to pay 0.2 to stripe but now if amount is 10.2 then 0.204 which is needed more then what we look from user (just example) trying to get picture that makking it 2% expensive will also increase stripe payout right ?

stuck wing
#

Yea, the amount you increase the payment by can also increase the fees, so you should account for this in your calculation.

frigid rover
#

cool

stuck wing
#

so to end up with some amount after fees you need to solve for x in x - fees(x) = amount where fees() depends on the details of the payment.

frigid rover
#

got it

stuck wing
#

in this simple example, x - x*0.02 = 10 is x(1-0.02)=10 is x=10/0.98 or x=10.204 (round how you like to account for the penny over or under)

#

Again, broad caveat ot make sure you're allowed to add fees to payments for whatever regulations apply to your business & customers.

frigid rover
#

yes but we don't have a direct way to charge this to end user was looking for if it was so we can skip all this and stripe simply add it to the base amount but I understand it is not avalible on stripe.

#

thank you for the help we will work around with all this information

tawdry sapphire
#

Hello

stuck wing