feat(deposit): hide TransFi cash deposits in prohibited countries - #2605
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
TransFi refuses to onboard users from UA, RU and BY (among others), so the local-currency cash deposit rows led them into a flow that could only fail. The list comes from EXPO_PUBLIC_TRANSFI_PROHIBITED_COUNTRIES (comma-separated alpha-2 codes), falling back to UA,RU,BY when unset so a build missing the var does not silently re-open them. The rows are hidden in the deposit cash screen and the card funding options; USD (virtual account) is unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mul53
force-pushed
the
claude/admiring-villani-01fb4a
branch
from
September 29, 2026 22:02
3b910dc to
1d06fd9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
EXPO_PUBLIC_TRANSFI_PROHIBITED_COUNTRIES: a comma-separated list of ISO alpha-2 codes, read inlib/config.ts.TRANSFI_PROHIBITED_COUNTRIES+isTransfiProhibitedCountry()inconstants/compliance.ts. Parsing trims and upper-cases each code. If the var is unset, it falls back toUA,RU,BY; if it is set empty, no country is blocked.useTransfiCountryAvailabilityhook. It reusesuseCashAppDepositAvailability's country resolution (stored country, else a session-memoised geo lookup).DepositCashOptions), together with the Show more toggle;CardFundOptions), which covers the Wirex, Rain desktop and Rain mobile modals.Why
TransFi prohibits users from UA, RU and BY, among others: https://docs.transfi.com/docs/prohibited-countries. Showing them these rows only leads to a failed onboarding.
Reviewer notes
EXPO_PUBLIC_*values are inlined at build time, so the env var needs setting per EAS environment.Testing
tscand eslint are clean on the touched files.constants/__tests__/transfiProhibitedCountries.test.tscovers the env parsing.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.