Payment Gateways
Mentor LMS supports multiple payment gateways to process course purchases. This page guides you through setting up each supported payment processor.
Accessing Payment Settings
- Log in to your admin dashboard
- Navigate to Settings in the sidebar menu
- Select Payment Settings from the dropdown options
Supported Payment Gateways
Mentor LMS supports the following payment processors:
- PayPal
- Stripe
- Mollie
- Paystack
You can enable one or multiple payment gateways based on your requirements and geographic location.
General Payment Settings
Before configuring specific gateways, set up your general payment options:
- Currency: Select your primary currency (e.g., USD, EUR, GBP)
- Currency Symbol Position: Choose whether to display the currency symbol before or after the amount
- Decimal Separator: Select period (.) or comma (,) as decimal separator
- Thousand Separator: Choose your preferred thousand separator
- Number of Decimals: Set the number of decimal places to display in prices
Configuring PayPal
- In the Payment Settings tab, find the PayPal section
- Toggle Enable PayPal to Yes
- Select the Mode:
- Sandbox: For testing (recommended during setup)
- Live: For processing real transactions
- Enter your PayPal credentials:
- Client ID: Your PayPal API client ID
- Secret Key: Your PayPal API secret key
- Click Save Changes
Obtaining PayPal API Credentials
- Log in to PayPal Developer Dashboard
- Navigate to Apps & Credentials
- Click Create App and provide a name for your application
- Select the environment (Sandbox or Live)
- After creation, copy the Client ID and Secret
- Configure the webhook URL as:
https://your-domain.com/payment/paypal/webhook
Configuring Stripe
- In the Payment Settings tab, find the Stripe section
- Toggle the Enabled switch to activate Stripe
- Configure Test Mode:
- Toggle Test Mode to use test credentials during development
- When enabled, you'll see "Using Test Keys" indicator
- Enter your Stripe credentials:
- Test Credentials:
- Public Test Key: Your Stripe test publishable key
- Secret Test Key: Your Stripe test secret key
- Live Credentials (for production use):
- Public Live Key: Your Stripe live publishable key
- Secret Live Key: Your Stripe live secret key
- Test Credentials:
- Set up Webhook Settings:
- Webhook Secret: Enter your Stripe webhook signing secret
- Click Save Changes
Obtaining Stripe API Credentials
- Log in to your Stripe Dashboard
- Navigate to Developers > API Keys
- Copy your Publishable key and Secret key (both test and live versions)
- Go to Developers > Webhooks
- Create a new webhook endpoint with URL:
https://your-domain.com/payment/stripe/webhook
- Select the necessary events (payment_intent.succeeded, payment_intent.failed, etc.)
- Copy the signing secret to use as Webhook Secret
Configuring Mollie
- In the Payment Settings tab, find the Mollie section
- Toggle the Enabled switch to activate Mollie
- Configure Test Mode:
- Toggle Test Mode to use test environment during development
- When enabled, you'll see "Using Test Environment" indicator
- Enter your Mollie credentials:
- Test API Key: Your Mollie test API key
- Live API Key: Your Mollie live API key (for production use)
- Click Save Changes
Obtaining Mollie API Key
- Log in to your Mollie Dashboard
- Navigate to Developers > API keys
- Copy your API keys (both test and live versions)
- Set up webhook URL as:
https://your-domain.com/payment/mollie/webhook
Configuring Paystack
- In the Payment Settings tab, find the Paystack section
- Toggle the Enabled switch to activate Paystack
- Configure Test Mode:
- Toggle Test Mode to use test credentials during development
- When enabled, you'll see "Using Test Keys" indicator
- Enter your Paystack credentials:
- Test Credentials:
- Public Test Key: Your Paystack test public key
- Secret Test Key: Your Paystack test secret key
- Live Credentials (for production use):
- Public Live Key: Your Paystack live public key
- Secret Live Key: Your Paystack live secret key
- Test Credentials:
- Click Save Changes
Obtaining Paystack API Credentials
- Log in to your Paystack Dashboard
- Navigate to Settings > API Keys & Webhooks
- Copy your Public and Secret keys (both test and live versions)
- Configure webhook URL as:
https://your-domain.com/payment/paystack/webhook
Testing Payment Gateways
After configuring your payment gateways:
- Switch to Sandbox/Test mode if available
- Create a test course with a price
- Try purchasing the course using the test credentials
- Verify the transaction appears in both your payment gateway dashboard and your LMS admin panel
Test Card Numbers
For testing in sandbox/test mode, use these cards:
- PayPal Sandbox: Create test accounts in PayPal Developer Dashboard
- Stripe Test: Card number
4242 4242 4242 4242
, any future expiry date, any 3-digit CVC - Mollie Test: Follow Mollie's testing documentation
- Paystack Test: Card number
4084 0840 8408 4081
, any future expiry date, any 3-digit CVC
Payment Settings Best Practices
- Start in Test Mode: Always configure and test in sandbox/test mode first
- Secure Credentials: Never expose your API keys in public code or repositories
- Transaction Fees: Be aware of transaction fees charged by each gateway
- Currency Support: Verify that your chosen gateway supports your preferred currency
- SSL Certificate: Ensure your site has a valid SSL certificate for secure transactions
- Regular Monitoring: Regularly monitor transactions and reconcile with gateway reports
After configuring your payment gateways, proceed to SMTP Email Setup to ensure your system can send transactional emails.