#scliu-stripefee-api

1 messages · Page 1 of 1 (latest)

lunar sentinelBOT
sharp edge
#

scliu-stripefee-api

#

Hey @twin mirage, there is no API of that shape today unfortunately, you'll have to do the math yourself

twin mirage
#

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

sharp edge
#

There isn't a way today to do anything like this unfortunately

twin mirage
#

so that all we can do is charge the customer and can't be sure if the amount is right or not?

sharp edge
#

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.

twin mirage
#

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

sharp edge
#

ah so you want to pass the fee to the customer

twin mirage
#

yes

sharp edge
#

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

twin mirage
#

but this is like after the customer accepts the payment right? can we show them the amount including the fee before hand

sharp edge
#

I mean you can build the flow however you like in this case. But it's after their enter card details yes

twin mirage
#

that's correct, cuz we can't know the amount of the fee before the we have the card details

sharp edge
#

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

twin mirage
#

but in this case

#

we still have to check the fee on our server -side

#

is that correct

sharp edge
#

I don't understand what you mean. There's no "fee to check". You calculate all you need at step #2 in the example I gave above

#

but yes you still make the math yourself

twin mirage
#

oh ok got it

#

yeah I mean calculate

#

but yes

#

haha

#

appreciate your help!