fix: block Stripe auto-fallback for non-US users#2529
Conversation
The token fallback hook auto-selects Stripe when no crypto token has sufficient balance. Pass a no-op instead of onStripeSelect for non-US users so fiat checkout is never auto-selected outside the US.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @Larkooo's task —— View job Documentation analysis completeTask: Review merged PR #2529 and determine if docs updates are needed. Todo List
AnalysisThis PR fixes a bug where the token fallback hook was auto-selecting Stripe for non-US users when crypto balance was insufficient, bypassing the US-only fiat restriction from PR #2528. The fix: Pass a no-op callback instead of onStripeSelect: isUS ? onStripeSelect : () => {},Decision: No documentation updates neededRationale:
Per the documentation update rules: "DEFAULT TO NO CHANGES. Most code PRs do not need docs updates. Internal refactors, test changes, CI changes, and dependency bumps need nothing." This qualifies as an internal bug fix that restores intended behavior already documented. |
Summary
useTokenFallback) auto-selects Stripe when no crypto token has sufficient balance — this was bypassing the US-only fiat gate from fix: gate KYC verification to US users only #2528onStripeSelectfor non-US users so fiat checkout is never auto-selected outside the USTest plan
🪟 Made with Lattice