#jamestha3d_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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
Hello there
hello bismarck
The processing fee varies based on the type of card used, for instance international cards are more expensive.
If you want to calculate the fee then you need to collect the payment method first, so you would use our two step flow: https://docs.stripe.com/payments/build-a-two-step-confirmation
okay let me check that link out
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.
the thing is i am using stripe connect, and passing in a transfer data for a recurring fixed amount.
Instead just pick a set amount that you want to set aside for fees.
but i need to be sure that the transfer data accurately considers the payment fees
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
okay
Really you should just set an amount, like 3%, or something like that.
That is what we recommend here.
Sure