#scliu-card-country

1 messages · Page 1 of 1 (latest)

thin tartanBOT
knotty fog
#

@lusty spear what's the question?

lusty spear
#

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

knotty fog
#

😅

#

What's the context? What are you trying to do? What product(s) are you using?

#

scliu-card-country

lusty spear
#

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

knotty fog
#

Are you using CardElement? PaymentElement? Checkout? Something else?

lusty spear
#

so the fee will be diferent

#

PaymentElement I'll say

knotty fog
#

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

lusty spear
#

got it

#

can you also suggest the team to create an endpoint that calculate the fee for firmsdevhelp

knotty fog
#

I don't understand the question

#

suggest what team for what?

lusty spear
#

I think it's helpful if there is an endpoint that can let users directly call and get the fee calculation

knotty fog
#

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

lusty spear
#

yah I understand that

knotty fog
#

ah okay so you meant that I should flag this as a feature request, got it

lusty spear
#

got it!

#

thank you so much

#

I'm good now

#

wait

#

one more question

knotty fog
#

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

lusty spear
#

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

knotty fog
#

still unpublic I think, just contact support and ask for access

lusty spear
#

gotit how long it might take for them to accept the request

#

I've to report to my manager

knotty fog
#

no idea sorry

lusty spear
#

oh ok

#

so there is no way to do the thing I want to do know

#

except the beta feature

knotty fog
#

correct

lusty spear
#

how bout if I use balance_transaction with the paymentIntent

knotty fog
#

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

lusty spear
#

oh I see