#aaparth-fees
1 messages · Page 1 of 1 (latest)
you can get the fees after the payment using https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment
so between that and reading our pricing page in the docs, you can write some code to know in advance what the fee will be if you want!
I know about after the payment which I have used but I wanna know it before hand
can you point me in right direction to get fees in advance
as for European cards its some fees and for international cards its different
@cobalt temple you there mate ?
yes
like I said, you can write code to calculate it in advance if needed
there's no API that tells you it, but it's straightforward enough to calculate it since it's static
how can we know what payment method belongs to European region or international ?
the pricing is on our site (e.g. 2.9% + 30c) , it's different for international cards, and you can confirm that by running test charges in test mode using different cards(https://stripe.com/docs/testing#international-cards) and then reverse engineer the logic
you would have to create the PaymentMethod object pm_xx first and then look at its country field
okay
but note in most of our integrations (Checkout/PaymentElement/mobile) they work in a way where you don't see the PaymentMethod object before it's charged, so you can't really do this without changing the overall way you integrate
our advice is to not try to do this really. Why do you want to know the exact fees beforehand?
we wants to charge the transection fees on top of our services so we wanna show the exact amount to the users
cool, have a read of https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers too then!
okay