Skip to main content
Gumroad supports PayPal through two integrations: PayPal Commerce Platform (PCP) for modern accounts and legacy Braintree for existing integrations.

PayPal Commerce Platform

PayPal Commerce Platform provides:
  • Direct PayPal checkout for customers
  • PayPal business account payouts for sellers
  • OAuth-based partner integration
  • Webhook event notifications

Supported Countries

PayPal Commerce Platform is available in most countries except:
Sellers in unsupported countries may still use PayPal for receiving customer payments, but cannot use PayPal Commerce Platform for payouts.

Configuration

Environment Variables

Configure PayPal in your .env file:

Gemfile Dependencies

Connecting PayPal Accounts

Sellers connect PayPal through the payment settings page.

Connection Flow

1

Initiate Connection

Seller clicks “Connect PayPal” in Settings > Payments
2

OAuth Authorization

Seller is redirected to PayPal to:
  • Log into their PayPal business account
  • Grant permissions to Gumroad
  • Confirm email address
3

Return to Gumroad

PayPal redirects back with merchant ID:
4

Verification

Gumroad verifies the account meets requirements:
  • Primary email is confirmed
  • Payments receivable permission granted
  • OAuth integration properly configured

Eligibility Requirements

To connect PayPal, sellers must:
  1. Minimum Sales: $100 in total sales on Gumroad
  2. Country Support: Be in a PCP-supported country
  3. Email Confirmation: Have confirmed PayPal email
  4. Permissions: Grant required OAuth permissions
If the minimum sales requirement is not met, sellers receive an error message and cannot connect PayPal Commerce Platform.

PayPal Webhooks

Gumroad listens for PayPal webhook events to track account status.

Webhook Configuration

Register webhooks using the PayPal API:

Handled Events

Updates merchant account when status changes:

PayPal for Customer Payments

Customers can pay with PayPal during checkout.

Order Creation

Billing Agreements

For subscriptions, PayPal uses billing agreements:
Billing agreements allow Gumroad to charge the customer’s PayPal account for recurring subscriptions without requiring re-authorization.

PayPal Instant Payment Notification (IPN)

Gumroad also supports PayPal’s legacy IPN system for backward compatibility.

IPN Endpoints

Disconnecting PayPal

Sellers can disconnect PayPal from Settings > Payments:
Sellers cannot disconnect PayPal if they have active subscriptions or preorders being charged through PayPal.

PayPal Payouts

When PayPal is the payout method:
Payouts are sent to the seller’s payment_address (PayPal email) when:
  • No bank account is connected, OR
  • Seller’s country doesn’t support native Stripe payouts

Testing PayPal Integration

For development:
  1. Sandbox Mode: Use PayPal sandbox credentials
  2. Test Accounts: Create test buyer and seller accounts in PayPal Developer Dashboard
  3. Webhook Testing: Use webhook.site to inspect webhook payloads

Troubleshooting

Email Not Confirmed

Issue: PayPal account email is not confirmed Solution: Seller receives email to confirm their PayPal email address

Missing Permissions

Issue: Seller didn’t grant all required permissions during OAuth Solution: Account marked as incomplete, seller must reconnect and grant permissions

Country Not Supported

Issue: Seller’s PayPal account is in an unsupported country Solution: Merchant account is deleted, error message displayed