Skip to content

WalletButtonsView: Fix Link in passthrough mode #5126

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

Merged
merged 3 commits into from
Jul 9, 2025

Conversation

davidme-stripe
Copy link
Contributor

@davidme-stripe davidme-stripe commented Jul 8, 2025

Summary

Link now appears as the first wallet option when PaymentSheet.isLinkEnabled is true, enabling it in PM mode and passthrough mode

Test plan

  • Verify Link appears at top of wallet buttons when enabled
  • Verify Link doesn't appear when disabled
  • Verify other wallets maintain their server-specified ordering
  • Test Link inline verification flow still works correctly

🤖 Generated with Claude Code

…ring

- Link now appears as the first wallet option when PaymentSheet.isLinkEnabled is true
- Ignores Link's position in orderedPaymentMethodTypesAndWallets to ensure consistent UX
- Preserves existing Link inline verification logic
- Other wallets maintain their server-specified ordering

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@davidme-stripe davidme-stripe requested review from a team as code owners July 8, 2025 17:16
@davidme-stripe davidme-stripe requested review from tillh-stripe and removed request for joyceqin-stripe July 8, 2025 17:17
@davidme-stripe davidme-stripe changed the title Show Link wallet button at top when enabled regardless of server ordering WalletButtonsView: Fix Link in passthrough mode Jul 8, 2025
tillh-stripe
tillh-stripe previously approved these changes Jul 8, 2025
@davidme-stripe davidme-stripe enabled auto-merge (squash) July 8, 2025 17:20
- Fixed test expectations to reflect Link appearing first when enabled
- Added new test cases for Link priority behavior
- Added test to verify Link is not shown when disabled
- Updated ShopPay configuration syntax in tests
@davidme-stripe davidme-stripe merged commit 6c07385 into master Jul 9, 2025
6 checks passed
@davidme-stripe davidme-stripe deleted the link-wallet-priority branch July 9, 2025 05:50
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