Skip to content

[APAM-879] Add lang to PaymentSession for payment UI locale - #60

Merged
weiping-awx merged 2 commits into
mainfrom
feat/APAM-879-lang
Aug 26, 2026
Merged

weiping-awx merged 2 commits into
mainfrom
feat/APAM-879-lang

Conversation

@weiping-awx

@weiping-awx weiping-awx commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add optional lang on PaymentSession so merchants can set the payment UI locale (for example zh-Hans, pt-BR).
  • Pass lang through to the iOS and Android native SDKs via session converters.
  • Let the example app pick a locale when creating sessions.

Android:
Screen_recording_20260825_151234.webm

iOS:
https://github.com/user-attachments/assets/d2c85c59-fa68-4b8c-aa5f-7eb757df34f6

Test plan

  • Run yarn example ios and yarn example android
  • Create one-off, recurring, and recurring-with-intent sessions with lang unset (SDK default)
  • Repeat with a locale such as zh-Hans and confirm the payment UI language
  • Confirm TypeScript still accepts sessions without lang

Made with Cursor

Pass optional lang through iOS and Android session builders.
Add an example app language picker for SDK-supported locales.

Co-authored-by: Cursor <cursoragent@cursor.com>
@weiping-awx
weiping-awx marked this pull request as ready for review August 25, 2026 07:31
@weiping-awx
weiping-awx requested a review from aw-hector August 25, 2026 07:31
Co-authored-by: Cursor <cursoragent@cursor.com>
@weiping-awx
weiping-awx merged commit 0c42081 into main Aug 26, 2026
5 checks passed
@weiping-awx
weiping-awx deleted the feat/APAM-879-lang branch August 26, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants