stripe icon indicating copy to clipboard operation
stripe copied to clipboard

Customer Portal Language

Open shifuma opened this issue 2 years ago • 1 comments

Description

I'm not sure if this is a plugin issue or a Stripe issue, so please let me know if this is the wrong spot. I couldn't find anywhere in the Stripe settings to set a default language for customers.

I have set the language of my forms to French, and the initial subscription through Stripe goes through that way. However, the customers default language is always set to English, so when they manage a subscription through the Customer Portal, the options are in English.

Steps to reproduce

  1. Have a form with a language other than English
  2. Subscribe to plan using SCA, form will be in that language
  3. Set the country/region to a non-English speaking country
  4. After successful subscription, manage the plan and see that it's in English
  5. Manually change the customer's language in Stripe, try to manage the subscription again using the Portal and the language will be correct

Potentially this is because my Primary Site language in Craft is English?

Additional info

  • Craft version: 4.3.10
  • PHP version: 8.0
  • Database driver & version: MySQL 5.7
  • Plugin version: 2.5.1
  • Is SCA and Stripe Checkout enabled?: Yes

shifuma avatar Feb 27 '23 12:02 shifuma

Hi @shifuma for the customer portal Stripe will try to determine the customer's preferred language based on their browser settings. If Stripe is unable to detect the language, it will use the default language for the portal, which is currently English.

However, we can pass the language via the form, I have added this to the to-do list.

andrelopez avatar Mar 16 '23 09:03 andrelopez