#gajendra-help
1 messages · Page 1 of 1 (latest)
@weak olive riiiight here 🙂
sorry for that
haha dont worry
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
AFAIK you can't pass the language there, you pass the language as a locale when you initialize Stripe.js instead: https://stripe.com/docs/js/initializing#init_stripe_js-options-locale
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
Can you try and be a lot more descriptive about what you do, what you see, what's not working, etc.?
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
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
I'd recommend flagging to our support team as a feature request: https://support.stripe.com/contact though I am flagging too
but with Card integration we have option to pass language
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