#gajendra-help

1 messages · Page 1 of 1 (latest)

peak night
#

@weak olive hello! what do you need help with?

upbeat quartz
#

@weak olive riiiight here 🙂

weak olive
#

sorry for that

upbeat quartz
#

haha dont worry

weak olive
#

I am using below code to setup it

#

stripe.confirmAcssDebitSetup(clientSecret, {
payment_method: {
billing_details: {
name: this.name,
email: this.email,
},
},
}).then(function (result) {

#

can you pls help to how can I pass language here

upbeat quartz
#

hmm

#

do you get an error message?

#

when running the script

peak night
weak olive
#

ok, let me try with this, thanks

#

const stripe = await loadStripe('pk_test_key', {locale: 'fr'});

#

I am using this way but it is not working for me

peak night
#

Can you try and be a lot more descriptive about what you do, what you see, what's not working, etc.?

weak olive
#

and I am using in angular 9

#

ok let me tell you step by step

#

I have successfully integrated stripe with pre-authorized debit in canada(direct debit with english language)

#

and now I want to same with french language as well so I am using below code

#

const stripe = await loadStripe('pk_test_key', {locale: 'fr'});

#

stripe.confirmAcssDebitSetup(clientSecret, {
payment_method: {
billing_details: {
name: this.name,
email: this.email,
},
},
}).then(function (result) {}

#

but when popup open it show me in english language while I have passed fr in locale

#

I need it in french language

peak night
#

okay thanks

#

I'm seeing the same, looks like we don't translate it. Asking internally to double check

#

yeah we use the browser locale instead so you can't really control this right now unfortunately

weak olive
#

but with Card integration we have option to pass language

peak night
#

I know, I'm explaining that it doesn't work for that specific part of the UI for ACSS. You just can't control it. It's a feature request you should ask our support team

weak olive
#

Ok, I will raise a request to support team

#

thank you