Skip to content

Use PaymentSheetTopBarStateFactory in EmbeddedNavigator screens - #13790

Open
jaynewstrom-stripe wants to merge 1 commit into
masterfrom
jaynewstrom/embedded-navigator-topbar-factory
Open

Use PaymentSheetTopBarStateFactory in EmbeddedNavigator screens#13790
jaynewstrom-stripe wants to merge 1 commit into
masterfrom
jaynewstrom/embedded-navigator-topbar-factory

Conversation

@jaynewstrom-stripe

@jaynewstrom-stripe jaynewstrom-stripe commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Use PaymentSheetTopBarStateFactory.create for the embedded Form, VerticalPaymentOptions, and HorizontalPaymentOptions screens instead of manually constructing identical PaymentSheetTopBarState values.

Motivation

Centralize top bar state construction and keep these embedded screens consistent with PaymentSheet's add-payment-method screens. This removes duplicated state setup while preserving existing behavior.

Testing

  • Added tests
  • Modified tests
  • Manually verified

Not run; this is a behavior-preserving refactor.

Screenshots

N/A — no visual changes.

Changelog

No changelog entry; this is an internal refactor with no user-facing behavior changes.

Base automatically changed from jaynewstrom/payment-method-title-helper to master August 6, 2026 16:15
Form, VerticalPaymentOptions, and HorizontalPaymentOptions each hand-rolled
an identical PaymentSheetTopBarState where only the test-mode label varied.
Route them through PaymentSheetTopBarStateFactory.create with Editable.Never,
matching how PaymentSheetScreen's add-payment-method screens build their top
bar state. Behavior is unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
@jaynewstrom-stripe
jaynewstrom-stripe force-pushed the jaynewstrom/embedded-navigator-topbar-factory branch from 18ad335 to c049765 Compare August 6, 2026 16:15
@jaynewstrom-stripe
jaynewstrom-stripe marked this pull request as ready for review August 6, 2026 16:20
@jaynewstrom-stripe
jaynewstrom-stripe requested review from a team as code owners August 6, 2026 16:20
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