Skip to content

Show horizontal layout when payment method layout is automatic and number of PMs is <= 2#12975

Merged
amk-stripe merged 4 commits into
masterfrom
pmo
Apr 29, 2026
Merged

Show horizontal layout when payment method layout is automatic and number of PMs is <= 2#12975
amk-stripe merged 4 commits into
masterfrom
pmo

Conversation

@amk-stripe

@amk-stripe amk-stripe commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Show horizontal layout when payment method layout is automatic and number of PMs is <= 2

Motivation

Horizontal mode ship recommendation

Testing

  • Added tests
  • Modified tests
  • Manually verified

Changelog

  • [CHANGED]12975 When paymentMethodLayout is set to Automatic, the layout is now horizontal when there are 2 or fewer payment methods available.

amk-stripe and others added 4 commits April 28, 2026 13:35
…hodMetadata

Store paymentMethodLayout instead and derive orientation via a function, removing
duplicated when-mapping logic from factory methods and test helpers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
@amk-stripe amk-stripe marked this pull request as ready for review April 28, 2026 22:08
@amk-stripe amk-stripe requested review from a team as code owners April 28, 2026 22:08
@amk-stripe amk-stripe merged commit f1f2f0b into master Apr 29, 2026
19 checks passed
@amk-stripe amk-stripe deleted the pmo branch April 29, 2026 16:32
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.

3 participants