Payment Methods
Setup
Configure payment gateways for your Nexus Donate store
Overview
Nexus Donate supports multiple payment gateways to accept donations from your players. This guide will help you set up the most popular payment methods.
Setting Up PayPal
PayPal is one of the most popular payment methods for online donations.
1. Create a PayPal Developer Account
- Go to https://developer.paypal.com
- Sign in with your PayPal account or create a new one
- Navigate to "My Apps & Credentials"
- Click "Create App"
2. Configure Your PayPal App
- Choose "Default Application" or create a new app
- Select "Sandbox" for testing or "Live" for production
- Note down your Client ID and Client Secret
- Configure the return URL to your store
3. Add PayPal to Your Store
- Go to your admin dashboard
- Navigate to Settings → Payment Methods
- Enable PayPal and enter your credentials
- Set up webhook URL for payment notifications
Setting Up Stripe
Stripe provides a modern payment processing solution with support for credit cards and other payment methods.
1. Create a Stripe Account
- Go to https://stripe.com
- Sign up for a Stripe account
- Complete the account verification process
- Access your Stripe dashboard
2. Get Your API Keys
- In your Stripe dashboard, go to "Developers" → "API keys"
- Copy your Publishable key and Secret key
- Use test keys for development, live keys for production
3. Configure Stripe in Your Store
- Go to your admin dashboard
- Navigate to Settings → Payment Methods
- Enable Stripe and enter your API keys
- Configure webhook endpoints for payment events
Webhook Configuration
Webhooks are essential for real-time payment processing and order fulfillment.
PayPal Webhooks
- In your PayPal developer dashboard, go to your app
- Add webhook URL: Code
https://yourstore.com/webhook/paypal - Select the following events:
- PAYMENT.SALE.COMPLETED
- PAYMENT.SALE.DENIED
- PAYMENT.SALE.REFUNDED
Stripe Webhooks
- In your Stripe dashboard, go to "Developers" → "Webhooks"
- Add endpoint: Code
https://yourstore.com/webhook/stripe - Select the following events:
- payment_intent.succeeded
- payment_intent.payment_failed
- charge.dispute.created
Testing Payment Methods
Always test your payment methods before going live.
PayPal Testing
- Use PayPal's sandbox environment for testing
- Create test buyer and seller accounts
- Test successful payments, failed payments, and refunds
- Verify webhook notifications are received
Stripe Testing
- Use Stripe's test mode for development
- Use test card numbers provided by Stripe
- Test various payment scenarios
- Verify webhook events are processed correctly
Security Best Practices
- Use HTTPS: Always use SSL certificates for your store
- Keep Keys Secure: Never expose your API keys in client-side code
- Validate Webhooks: Always verify webhook signatures
- Monitor Transactions: Regularly review payment logs
- Update Regularly: Keep your payment integrations updated
Important: Never use live payment credentials in a development environment. Always test thoroughly before going live.