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

[BUG] Card scanning translation errors #9600

Open
Yousrael01 opened this issue Nov 12, 2024 · 0 comments
Open

[BUG] Card scanning translation errors #9600

Yousrael01 opened this issue Nov 12, 2024 · 0 comments
Labels

Comments

@Yousrael01
Copy link

Summary

I want to use the 'card scanning' feature of PaymentSheet in my app which is in French language. However, the messages are all in English rather than in French.

IMG_0011

Code to reproduce

My supported locale language in my app is French:

ScreenUtilInit(
                  designSize: const Size(360, 690),
                  minTextAdapt: true,
                  builder: (context, _) => MaterialApp.router(
                      routerConfig: router,
                      theme: lightTheme,
                      localizationsDelegates: const [
                        GlobalMaterialLocalizations.delegate,
                        GlobalWidgetsLocalizations.delegate,
                        GlobalCupertinoLocalizations.delegate,
                      ],
                      supportedLocales: const [
                        Locale('fr', 'FR'),
                      ],
                      locale: const Locale('fr', 'FR')));
            }

And my paymentSheet configuration adress is also FR:

 val address = PaymentSheet.Address(country = "FR")
        val billingDetails = PaymentSheet.BillingDetails(
            address = address,
        )

        // Display paymentSheet
        activity.paymentSheet.presentWithSetupIntent(
            setupIntentClientSecret!!,
            PaymentSheet.Configuration(
                merchantDisplayName = merchantDisplayName!!,
                defaultBillingDetails = billingDetails,
                appearance =
                PaymentSheet.Appearance(
                    primaryButton = PaymentSheet.PrimaryButton(
                        colorsLight = PaymentSheet.PrimaryButtonColors(background = Color.parseColor(
                            PaymentSheetChannelHandler.PAYMENT_SHEET_PRIMARY_COLOR
                        ),
                            onBackground = Color.WHITE, border = Color.parseColor(PaymentSheetChannelHandler.PAYMENT_SHEET_PRIMARY_COLOR)),
                    )
                ),
                primaryButtonLabel = "Ajouter la carte",
            ))

Android version

Reproduced on android version 12

Impacted devices

All our devices : Samsung S20 FE 5G, Huawei P30 and more...

Installation method

Gradle

Dependency Versions

kotlin: 1.9.0
stripe-android: 21.0.1
Android Gradle Plugin: 8.4.0
Gradle: 8.10.1

SDK classes

PaymentSheet

@Yousrael01 Yousrael01 added the bug label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant