#jamestha3d_api

1 messages ¡ Page 1 of 1 (latest)

mighty girderBOT
#

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

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

wind swan
#

for example this is a subscription renewal:

#

and it doesnt follow the formula:
39.97 * 0.029 + 0.3 = 1.45913

#

i saw this on the stripe website:
but not sure how i can determine this int he API

twin parrot
#

Hello there

wind swan
#

hello bismarck

twin parrot
#

The processing fee varies based on the type of card used, for instance international cards are more expensive.

wind swan
#

okay let me check that link out

twin parrot
#

I'd also note that the fee is inlcuded in the amount so you can't just do a simple calculation here

#

Overall, I'd recommend not trying to do this at all.

wind swan
#

the thing is i am using stripe connect, and passing in a transfer data for a recurring fixed amount.

twin parrot
#

Instead just pick a set amount that you want to set aside for fees.

wind swan
#

but i need to be sure that the transfer data accurately considers the payment fees

twin parrot
#

Yeah that's what I'm saying -- I'd recommend just not doing that.

#

Otherwise you have to do a complex calculation as well as collect the payment method up front.

#

And you need different calculation for each differnet kind of payment method you are going to support

wind swan
#

okay

twin parrot
#

Really you should just set an amount, like 3%, or something like that.

#

That is what we recommend here.

wind swan
#

okay

#

thank you

twin parrot
#

Sure