Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer Portal Language #347

Open
shifuma opened this issue Feb 27, 2023 · 1 comment
Open

Customer Portal Language #347

shifuma opened this issue Feb 27, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@shifuma
Copy link

shifuma commented Feb 27, 2023

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
@andrelopez andrelopez self-assigned this Mar 16, 2023
@andrelopez
Copy link
Member

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 andrelopez added the enhancement New feature or request label Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants