stripe-android
stripe-android copied to clipboard
Update PrimaryButtonUiStateMapper to use resolvableString
Summary
Update PrimaryButtonUiStateMapper
to use resolvableString
to handle per app localization
Motivation
Needed for merchants using per-app localization that are below API 33
To test:
- Add
val appLocales = LocaleListCompat.forLanguageTags("fr")
AppCompatDelegate.setApplicationLocales(appLocales)
to PaymentSheetPlaygroundActivity.onCreate()
- Add French to System Languages
Testing
- [ ] Added tests
- [X] Modified tests
- [X] Manually verified
Screenshots
Before | After |
---|---|