#patrickhowonk_17393_66278

1 messages · Page 1 of 1 (latest)

marsh geyserBOT
sour saffron
#

Do you mean changing the Invoice language?

dawn glade
sour saffron
#

You can try changing the Customer preferred_locales

dawn glade
#

i have already used but in card payment keep in english however the pdf invoice chance in french

dawn glade
#

yes but i want chance to French

#

yes but i want to chance Franch

#

You're there?

sour saffron
#

Can you provide the Invoice Id in_xxxx ?

#

Want to double check the preferred_locales

dawn glade
#

yes

#

in_1OObJcEARDaQMOLNfmzf40fS

sour saffron
#

Okie, where is the request you changed preferred_locales?

dawn glade
#

const product = await stripe.products.create({
name: "test",
});
// const feeP = await stripe.products.create({
// name: "frais de platforme",
// });
// const feePlatforme= Number(prop.mission.cout) * (fees[0].value)
// console.log("icicicii",feePlatforme)
const price = await stripe.prices.create({
product: product.id,
unit_amount:10000,
currency: "eur",
});
const customer = await stripe.customers.create({
name: "test",
email: "pjsranaivo@gmail.com",
invoice_prefix:"HWK1",
address:{
city:"Paris",
country:"France",
postal_code:"2455"
},
next_invoice_sequence:1238,
preferred_locales:["fr-FR"]
});
const invoice = await stripe.invoices.create({
on_behalf_of: "acct_1ONAfvCpxTDOfzS7",
// application_fee_amount: feePlatforme,
transfer_data: {
destination: "acct_1ONAfvCpxTDOfzS7",
},
customer: customer.id,
});
await stripe.invoiceItems.create({
customer: customer.id,
price: price.id,
invoice: invoice.id,
});

sour saffron
#

Ah I see

#

Unfortunately this Hosted Invoice Page will respect the customer settings on the browser where it's openned

#

So the prefer_locales above only affects the Invoice PDF. Sorry!