#patrickhowonk_17393_66278
1 messages · Page 1 of 1 (latest)
Do you mean changing the Invoice language?
You're there?
You can try changing the Customer preferred_locales
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Here is the parameter on Update Customer API https://stripe.com/docs/api/customers/update#update_customer-preferred_locales
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i have already used but in card payment keep in english however the pdf invoice chance in french
Can you provide the Invoice Id in_xxxx ?
Want to double check the preferred_locales
Okie, where is the request you changed preferred_locales?
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,
});