#scliu-card-country
1 messages · Page 1 of 1 (latest)
@lusty spear what's the question?
Hi it's me again!
so if I want to know the card country to calculate the convenience fee on my side
I have to create a paymentmethod first
but does that mean I'll have to calculate the fee first
is that correct
or I can just create it with the card number stuff
😅
What's the context? What are you trying to do? What product(s) are you using?
scliu-card-country
I'm trying to let the customer paid by their credit card and I'll need to calculate the stripe fee and shows to the client
but there are some clients with nonUS credit card
Are you using CardElement? PaymentElement? Checkout? Something else?
Okay so with PaymentElement this is basically impossible
So you can't do what you're trying to do right now. PaymentElement collects card details during the payment confirmation. You can't just go and look in the middle to add a fee, not with the default integration
What you want to do is look at https://stripe.com/docs/payments/accept-a-payment-deferred this is a beta that lets you do exactly what you need
got it
can you also suggest the team to create an endpoint that calculate the fee for firms
I think it's helpful if there is an endpoint that can let users directly call and get the fee calculation
Like if you read that doc it explains how to do a step server-side, where you can calculate the fee yourself based on the card's country. We have no API to "calculate the Stripe fee" unfortunately
yah I understand that
ah okay so you meant that I should flag this as a feature request, got it
I'd recommend registering your interest for this with our support team: https://support.stripe.com/contact
got it!
thank you so much
I'm good now
wait
one more question
what's the difference between https://stripe.com/docs/payments/accept-a-payment-deferred and finalize payments on the server
the link you shared is "the future" :p
like this is the newer beta integration path that is going to be public soon. The "finalize on the server" in my opinion is not a great feature, it was just an attempt to meet what people needed. It still works, but the newer one is more flexible and has more features
oh ok got it!
thank you so much!
but i can use the "future" one now
is that correc
t
or it's still unpublic yet
still unpublic I think, just contact support and ask for access
gotit how long it might take for them to accept the request
I've to report to my manager
no idea sorry
oh ok
so there is no way to do the thing I want to do know
except the beta feature
correct
how bout if I use balance_transaction with the paymentIntent
I don't understand what that could mean? A PaymentIntent has no BalanceTransaction. A Charge does and that's after a Charge is already fully paid
oh I see