#scliu-stripefee-api
1 messages · Page 1 of 1 (latest)
scliu-stripefee-api
Hey @twin mirage, there is no API of that shape today unfortunately, you'll have to do the math yourself
oh ok got it.
@sharp edge but how to detect if there is any additional fee (like international card or currency conversion) from the given data
There isn't a way today to do anything like this unfortunately
so that all we can do is charge the customer and can't be sure if the amount is right or not?
I mean it depends a lot on your entire integration path. There are numerous ways to integrate with Stripe for example. And it depends what you are really trying to do.
got it. Current use case of mine is trying to let customers use their credit cards to make payments online. but the stripe fee should also be added as a total amount. So that's why I'm asking about the fee-calculated stuff.
like to ascertain the amount of the fee
ah so you want to pass the fee to the customer
yes
https://stripe.com/docs/payments/finalize-payments-on-the-server so you want this flow that is currently in beta
it lets you collect payment method details upfront and then server-side you can do your own logic to change the amount as needed before charging their card
but this is like after the customer accepts the payment right? can we show them the amount including the fee before hand
I mean you can build the flow however you like in this case. But it's after their enter card details yes
that's correct, cuz we can't know the amount of the fee before the we have the card details
yeah so you do
1/ Collect card details
2/ Server-side, do things to look at the card, its country, etc. calculate the fee and final amount
3/ Display the final amount/charge them
but in this case
we still have to check the fee on our server -side
is that correct