PayPal Payout Eligibility#
Payout eligibility on Gitpay is not solely determined by whether a contributor has a PayPal account. Two orthogonal constraints apply: (1) the payment provider of the funding order must match the payout method, and (2) the contributor's country/region must be supported by whatever provider is active for the platform.
Provider-Source Matching#
Gitpay routes bounty payouts based on which provider funded each order. In transferBuildsService.ts, each paid order is bucketed into stripeTotal, paypalTotal, or whopTotal. A PayPal payout is only attempted when paypalTotal > 0 โ meaning the bounty was originally funded by a payer using PayPal. If a task's orders were all funded via Stripe or Whop, linking a PayPal account on the contributor side has no effect on receiving that bounty; it will be paid via the Stripe or Whop path regardless.
PayPal Payout Prerequisites#
When PayPal-funded orders are present, transferBuildsService requires :
- The contributor must have a
paypal_idlinked on their Gitpay account (stored asUser.paypal_id). If not, the transfer enterspending_reviewwith reasonpaypal_no_account. - Gitpay sends the payout to the contributor's registered email address via
POST /v1/payments/payoutson the PayPal API (recipient typeEMAIL).
The frontend TransferEligibilityInfo component surfaces this as a warning when paypal_id is missing . Crucially, the UI only checks for a linked account โ it does not check the contributor's country, because Gitpay does not enforce PayPal country eligibility at the application layer.
Mainland China (and other Stripe-unsupported regions)#
This is the non-obvious constraint. Gitpay's primary payment rail is Stripe Connect. For bounties funded via Stripe, the payout destination must be a Stripe Connect account โ and Stripe Connect does not support China (CN is absent from STRIPE_SUPPORTED_COUNTRIES).
The historically assumed workaround โ receiving a Stripe-funded bounty via PayPal โ is not supported. Cross-provider transfers (Stripe balance โ PayPal payout) would require Gitpay to withdraw from Stripe to its own bank, then re-fund a PayPal payout, which the maintainers have explicitly ruled out due to fee and tax implications . A maintainer stated directly:
"If the bounty was funded with PayPal, you can receive it with PayPal. Otherwise, you need a bank account, and unfortunately, China is not supported on Stripe yet or AliPay wallets." โ GitHub issue #1251
In practice, mainland China contributors cannot receive Stripe-funded bounties even with a valid PayPal account. The only currently supported path for China-based contributors is bounties funded via Whop (which supports CN, see WHOP_SUPPORTED_COUNTRIES), which enables AliPay-based payout .
PayPal Integration Reliability#
Beyond the geographic constraint, PayPal itself has been an unreliable payout rail. The maintainer has documented recurring compliance holds where PayPal freezes payouts for weeks pending repeated information requests . This is separate from the country restriction and affects all regions equally. The platform actively de-emphasizes PayPal in favor of Stripe and Whop for new work.
Country Support by Provider#
| Provider | Country scope | China (CN) | Source |
|---|---|---|---|
| Stripe Connect | ~63 curated countries | โ Not supported | |
| Whop | ~200+ countries | โ Supported |
The active provider is set via PAYMENT_PROVIDER env var . The frontend country picker and backend GET /user/account/countries both reflect the active provider's list โ getSupportedCountryCodes() on the frontend and getSupportedCountriesForProvider() on the backend.
Key Files#
| File | Purpose |
|---|---|
src/services/transfers/transferBuildsService.ts | PayPal payout dispatch logic (lines 294โ354) |
src/providers/shared/supportedCountries.ts | STRIPE_SUPPORTED_COUNTRIES / WHOP_SUPPORTED_COUNTRIES lists |
frontend/src/components/areas/private/shared/provider-country-codes.ts | Frontend country picker, provider-aware |
frontend/.../transfer-eligibility-info.tsx | UI warning when paypal_id is missing |
docs/payments-providers.md | Supported countries documentation |