Set up PayPal accounts
PayPal's sandbox environment provides developers with testing accounts to simulate real payment scenarios without processing actual transactions. PayPal sandbox provides testing environments with two main account types:
Personal accounts
Personal accounts are for customers or buyers in transactions. Use these to simulate different customer behaviors, payment methods, and verification statuses.
Business accounts
Business accounts are for merchants or sellers and include API credentials for payment processing. These accounts handle transaction settlement and provide access to merchant tools.
When you register as a PayPal developer, the PayPal sandbox automatically creates:
- A business account: For example,
pp.merch01-facilitator@example.com
(with API credentials) - A personal account: For example,
pp.merch01-buyer@example.com
(for buyer testing)
Some PayPal transactions involve multiple buyer-seller pairs. For example, Parallel payments and Adaptive payments require two separate business accounts, each for different purposes. In such cases, you'll need to create additional sandbox business accounts to represent each party involved in the transaction.
Additionally, there is a provision for bulk account management.
Individual account setup
Create Personal Account
Use personal accounts to simulate different types of customers in your payment flows.
Setup steps:
- Log in to the Developer Dashboard
- Navigate to PayPal sandbox → Accounts
- Select Create Account
- Set Account Type to Personal
- Select your target Country
- Select Create Account
Create Business Account
Business accounts provide API credentials and merchant functionality for processing payments.
Setup steps:
- Navigate to PayPal sandbox → Accounts in the Developer Dashboard
- Select Create Account
- Set Account Type to Business
- Select your business Country
- Select Create Account
Duplicate Existing Accounts
Clone accounts when you need similar configurations with minor variations.
Duplication process:
- Locate the account you want to duplicate
- Select the Manage Accounts (⚙️) next to the account you want to manage
- Select Duplicate Account
- Modify any fields you want to change
- Select Create Account
Bulk account upload
Bulk account upload is used to create up to 40 accounts at once, which is useful for testing complex scenarios or creating multiple accounts efficiently.
When to Use Bulk Upload
- Testing payment flows with multiple customer types
- Simulating verified and unverified users
- Setting up international payment testing
- Creating comprehensive test suites
- Configuring various merchant scenarios
File Preparation for Bulk Upload
Step 1: Download the template
Download the official sandbox-bulk-headers.csv template to ensure proper formatting.
Step 2: Configure account data
Fill in the required fields for each account:
Field | Description | Examples |
---|---|---|
country_code | Two-letter country code | US, GB, CA, DE |
account_type | Account type | Business, Personal |
primary_email_alias | Unique email address | buyer1@test.com |
password | Account password | TestBuy123! |
first_name | Account holder first name | John, Maria, Alex |
last_name | Account holder last name | Smith, Garcia, Chen |
ppBalance | PayPal balance (0-100000) | 1000, 5000, 25000 |
addBank | Bank verification status | Y, N |
ccType | Credit card type | Visa, Mastercard, Amex |
payment_card | Payment method | PayPal, Discover |
Step 3: File format requirements
- Encoding: UTF-16 Little Endian (Excel's "Unicode Text" format)
- Extension: .txt or .csv
- Size: Maximum 1 MB
- Accounts: 1-40 account rows
- Separator: Comma-separated values
Sample Configuration
country_code,account_type,primary_email_alias,password,first_name,last_name,ppBalance,addBank,ccType,payment_card
US,PERSONAL,verified-buyer@test.com,BuyTest1!,John,Smith,5000,Y,VISA,PAYPAL
US,PERSONAL,unverified-buyer@test.com,BuyTest2!,Jane,Doe,1000,N,MASTERCARD,PAYPAL
US,BUSINESS,merchant1@test.com,MerchTest1!,Business,Owner,10000,Y,VISA,DISCOVER
GB,PERSONAL,uk-buyer@test.com,UKTest1!,David,Wilson,2000,Y,MAESTRO,PAYPAL
Upload Process
Upload steps:
- Navigate to Developer Dashboard → PayPal sandbox → Bulk Accounts
- Select "Upload File" or "Choose File"
- Select your prepared CSV file
- Select "Upload"
- Review validation results
- Fix any errors and re-upload if needed
Account and password management
Change account password
- Go to PayPal sandbox → Accounts
- Select the manage icon ⚙️ for your target account
- Select "View/Edit Account"
- Select "Change password" in the Profile tab
- Enter a new password following the security requirements
- Select "Save"
Password requirements
- 8-10 characters long
- Mixed uppercase and lowercase letters
- At least one number or symbol (!, @, #, $, %, ^)
- No four or more repeated characters (avoid 1111, abcd)
Account linking
Connect pre-existing PayPal sandbox accounts to your developer account:
- Navigate to the PayPal sandbox → Accounts page
- Select the authentication link for the account type
- Enter your existing PayPal sandbox account credentials
- Confirm successful account linking
Note: Accounts already linked to another developer account cannot be re-linked.
Account deletion
Remove unwanted test accounts:
- Locate the account in your accounts list
- Select the manage icon (⚙️)
- Select Delete
- Confirm the deletion
Protected Accounts: You cannot delete the default -facilitator
and -buyer
accounts created during registration.
Validation and requirements
File validation rules
PayPal validates bulk upload files using these criteria:
Data integrity:
- All required fields must be completed
- Field values must match expected data types
- Country codes must be valid 2-letter formats
- Card types must be compatible with the selected countries
Uniqueness:
- Each email address must be unique within the file
- Email addresses must be available in the PayPal sandbox environment
Dependencies:
- Credit card types must be valid for the specified country
- All contextual relationships must be correct
Common validation errors
File format issues:
- Incorrect encoding (must be UTF-16LE)
- Not a valid file extension
- File size exceeds 1 MB
- More than 40 account rows
Data issues:
- Duplicate email addresses
- Not valid country codes
- Passwords not meeting security requirements
- Incompatible card types for countries
Testing scenarios setup
Basic payment flow testing
Create account pairs:
- 1 verified personal account (buyer)
- 1 business account (merchant)
- Test successful payment transactions
Configuration example:
Buyer: verified-customer@test.com (Personal, US, $5000 balance, Bank: Y, Card: VISA)
Merchant: test-merchant@test.com (Business, US, $10000 balance, API credentials)
Error scenario testing
Insufficient funds testing:
- Personal account with low balance ($50)
- Attempt transactions exceeding the balance
Unverified account testing:
- Personal account with
addBank: N
- Test verification prompts and limitations
International testing
Multi-Country setup:
- US accounts for domestic testing
- GB accounts for international scenarios
- CA accounts for cross-border transactions
- Test currency conversion and regional payment methods
Best practices
Account planning strategy
Start simple:
- Use default accounts for initial integration testing
- Create 2-3 additional accounts for basic scenarios
- Expand to bulk upload for comprehensive testing
Organize by purpose:
- Name accounts clearly:
verified-buyer-us
,unverified-buyer-gb
- Document account purposes and test scenarios
- Group accounts by testing phase or feature
Security considerations
Credential management:
- Store account credentials securely
- Use unique passwords for each account
- Regularly rotate passwords for long-term projects
Environment separation:
- Keep PayPal sandbox credentials separate from production
- Use different email patterns for easy identification
- Document which accounts are for which testing phases
Documentation maintenance
Account documentation:
- Record account purposes and configurations
- Track which accounts are used for which test scenarios
- Maintain a mapping of accounts to test cases
Quick start actions
Next steps
- Verify default accounts: Log into your auto-generated accounts at sandbox.paypal.com
- Test basic flow: Execute a simple payment between your default buyer and merchant accounts
- Create additional account: Set up one custom account for your specific testing needs
- Document credentials: Save all account emails and passwords securely
Ready for advanced testing
After your accounts are set up, you're ready to:
- Configure webhooks for real-time event handling
- Test various payment methods and currencies
- Integrate with third-party platforms and plugins
- Develop comprehensive automated test suites
Your PayPal sandbox accounts provide the foundation for thorough PayPal integration testing across all scenarios your application will encounter in production.