#chirag-savaliya_code

1 messages ยท Page 1 of 1 (latest)

gentle shadowBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1450035951924674581

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

mellow heron
#

Hello

fresh ridge
#

๐Ÿ‘‹ Happy to help

#

Could you please share more details?

#

What guide are you following

mellow heron
#

I need help to implement localization feature in stripe payment. Let me explain my whole scenario. We have platform which takes fee from user. We used payment intent feature for that. Currently there is no localization but now we want to implement it. We want to choose GBP as base currency and amount should be display based on user localization during payment. How can i do it. Currently everyhing works fine.

fresh ridge
#

You want to localize what part of Element

#

?

#

We want to choose GBP as base currency and amount should be display based on user localization during payment.
This feature is available for Checkout Session

#

But not for PaymentIntent

#

You need to create a PaymentIntent with the corresponding currency depending on the Customer, if you want to use PaymentElement and PaymentIntents

mellow heron
#

Okay so if i need to create payment intent in user local currency. Can i do like i am calculate all the things in my base currency and and then during payment intent creation i convert it in user local currency ?

fresh ridge
#

Yes you can do the currency conversion

#

and thn create the PaymentIntent

mellow heron
#

So in this approach should i need to change in stripe processing fee calucation or any other important changes ?

#

Or just i can do it like keep my calculation based on GBP and at the end just i convert all components to user's local currency.

fresh ridge
#

There will be no fees for currency conversion at Stripe Side

#

as you'll be doing the conversion by. your side

mellow heron
#

I mean to say a stripe processing fee currently i am calculating based on the payment method id . Will it work fine ?

fresh ridge
#

You can calculate the estimation of Stripe fees but you can't know the exac t amount at front in all cases

mellow heron
#

So in this approach it is not possible to calculate exact stripe processing fee right ?

fresh ridge
#

You can't calculate the exact Stripe processing fees in any approach

gentle shadowBOT
mellow heron
#

Okay