PayPal
Connect PayPal to PayLexer to accept card payments, PayPal accounts, digital wallets, and buy now pay later options across 200+ countries.
PayPal is a US-based global payment processor operating in over 200 countries and regions worldwide.
It supports card payments, PayPal account payments, digital wallets, and buy now pay later options for businesses of all sizes.
| Type | Details |
|---|---|
| Supported Regions (Merchant Accounts): | 200+ countries including United States, Canada, Europe, UK, Australia, Asia, Latin America, and Middle East |
| Supported Currencies: | 25+ currencies including USD, EUR, GBP, CAD, AUD, JPY, SGD, and more |
This guide walks you through connecting PayPal to PayLexer, configuring API credentials and webhooks, and testing transactions before going live.
Supported Features
-
One-time payments
-
Refunds
-
Real-time payment status updates
-
Multiple payment methods (PayPal account, cards, Venmo, Pay Later)
-
Subscription billing (if enabled)
-
Buyer and seller protection
Before You Start
Make sure you have:
-
PayPal Business Account: Don't have an account? Sign up for PayPal Business →
-
PayLexer Account: Required to configure the integration. Create your account →
-
A website where you want to integrate
Looking for a different payment processor? View all supported gateways →
Configuring PayPal
You need a Client ID and Secret Key from PayPal for this integration.
Getting API Credentials
-
Log in to your PayPal Developer Dashboard
-
Select Sandbox or Live environment tab
-
Go to Apps & Credentials
-
Click Create App (if you haven't created one)
-
Enter your app name and click Create App
-
Copy your Client ID and Secret Key
Note: PayPal provides separate credentials for Sandbox (Test) and Live (Production) environments. Create apps in both environments to enable full testing.
Adding Credentials to PayLexer
-
Log in to your PayLexer dashboard
-
Navigate to Payment Gateways
-
Click on PayPal
-
Add the credentials you copied above
Understanding Live/Production and Sandbox Settings:
Here you will find settings for two environments:
-
**Live / Production (Mandatory)**These credentials are used for real transactions. This field is required and cannot be empty, even when testing.
-
**Test / Sandbox (Optional)**These credentials are used for testing only. No real money is processed.
How PayLexer Selects Credentials?
PayLexer automatically switches credentials based on your platform mode:
-
Debug/Test mode ON → Test credentials are used
-
Debug/Test mode OFF → Live credentials are used
You do not need to manually switch keys once both environments are saved.
-
Click Test Connection to verify your credentials
-
Click Save Configuration
Configuring Webhooks (Mandatory)
Webhooks enable real-time payment updates. While not required, they significantly improve reliability.
Benefits of Webhooks
-
Instant payment status updates
-
Automatic refund processing
-
Real-time subscription changes
-
Dispute and chargeback notifications
Setting up Webhooks
-
Log in to your PayPal Developer Dashboard
-
Go to Apps & Credentials
-
Select your app
-
Scroll down to Webhooks section
-
Click Add Webhook
-
Copy the Webhook URL from PayLexer
-
Paste it into Webhook URL field
-
Select the event types you want to receive
-
Click Save
-
Copy the Webhook ID
-
Paste it into PayLexer
-
Click Save Configuration
Note: PayPal uses signature verification automatically – no separate webhook secret needed.
Integrate PayPal to Your Website
If you have already added and configured your site, you can enable PayPal in your existing setup.
To add to your existing site:
-
Navigate to Websites
-
Click on the Edit Icon of your added website
-
Click on the checkbox to enable PayPal to the added website
If you haven't added a website yet, Continue to Add Your Website →
Troubleshooting
Best Practices
-
Test in Sandbox before enabling Live mode
-
Validate the first live transaction after switching
-
Confirm webhooks are working
-
Monitor the gateway dashboard for failed payments
-
Keep API credentials secure
-
Use separate Sandbox and Live credentials
-
Ensure Debug/Test mode is enabled during testing, use only PayPal Sandbox accounts, and save Sandbox credentials in PayLexer – not just Live credentials
-
Enable PayPal Seller Protection for eligible transactions
FAQs
Still Have Questions?
-
PayLexer Support: Contact Support
-
PayPal Support: PayPal Help Center
Last updated 4 days ago
Built with Documentation.AI