Prerequisites
- PayPal Business Account
- Access to PayPal Developer Dashboard
- Your application ready for integration
Access PayPal Developer Dashboard
Open the PayPal Developer Portal
Go to https://developer.paypal.com, click Log In, and sign in with your PayPal Business account credentials.
Create a New Application
Create a Webhook
Select Webhook Events
Get Webhook ID
Confirm the webhook was created
After creating the webhook, confirm that it appears in the webhooks list.
Get Client Credentials
Add PayPal to Spartan
Open the PayPal gateway
Log in to Spartan as an administrator, then go to Modules → Gateways and select PayPal, not PayPal IPN.
Troubleshooting
Common Issues
-
Invalid Credentials
- Verify Client ID and Client Secret are correct
- Ensure you’re using the right environment (sandbox/live)
-
Webhook Not Receiving Events
- Check webhook URL is accessible
- Verify webhook is enabled and configured correctly
- Check your server logs for errors
- Make sure your domain is not flagged. ( Check PayPal for more info )







