Skip to content

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

  1. Log in to your admin dashboard
  2. Navigate to Settings in the sidebar menu
  3. Select Payment Settings from the dropdown options

Supported Payment Gateways

Mentor LMS supports the following payment processors:

  1. PayPal
  2. Stripe
  3. Mollie
  4. 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:

  1. Currency: Select your primary currency (e.g., USD, EUR, GBP)
  2. Currency Symbol Position: Choose whether to display the currency symbol before or after the amount
  3. Decimal Separator: Select period (.) or comma (,) as decimal separator
  4. Thousand Separator: Choose your preferred thousand separator
  5. Number of Decimals: Set the number of decimal places to display in prices

Configuring PayPal

Payment Settings

  1. In the Payment Settings tab, find the PayPal section
  2. Toggle Enable PayPal to Yes
  3. Select the Mode:
    • Sandbox: For testing (recommended during setup)
    • Live: For processing real transactions
  4. Enter your PayPal credentials:
    • Client ID: Your PayPal API client ID
    • Secret Key: Your PayPal API secret key
  5. Click Save Changes

Obtaining PayPal API Credentials

  1. Log in to PayPal Developer Dashboard
  2. Navigate to Apps & Credentials
  3. Click Create App and provide a name for your application
  4. Select the environment (Sandbox or Live)
  5. After creation, copy the Client ID and Secret
  6. Configure the webhook URL as: https://your-domain.com/payment/paypal/webhook

Configuring Stripe

Payment Settings

  1. In the Payment Settings tab, find the Stripe section
  2. Toggle the Enabled switch to activate Stripe
  3. Configure Test Mode:
    • Toggle Test Mode to use test credentials during development
    • When enabled, you'll see "Using Test Keys" indicator
  4. 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
  5. Set up Webhook Settings:
    • Webhook Secret: Enter your Stripe webhook signing secret
  6. Click Save Changes

Obtaining Stripe API Credentials

  1. Log in to your Stripe Dashboard
  2. Navigate to Developers > API Keys
  3. Copy your Publishable key and Secret key (both test and live versions)
  4. Go to Developers > Webhooks
  5. Create a new webhook endpoint with URL: https://your-domain.com/payment/stripe/webhook
  6. Select the necessary events (payment_intent.succeeded, payment_intent.failed, etc.)
  7. Copy the signing secret to use as Webhook Secret

Configuring Mollie

Payment Settings

  1. In the Payment Settings tab, find the Mollie section
  2. Toggle the Enabled switch to activate Mollie
  3. Configure Test Mode:
    • Toggle Test Mode to use test environment during development
    • When enabled, you'll see "Using Test Environment" indicator
  4. Enter your Mollie credentials:
    • Test API Key: Your Mollie test API key
    • Live API Key: Your Mollie live API key (for production use)
  5. Click Save Changes

Obtaining Mollie API Key

  1. Log in to your Mollie Dashboard
  2. Navigate to Developers > API keys
  3. Copy your API keys (both test and live versions)
  4. Set up webhook URL as: https://your-domain.com/payment/mollie/webhook

Configuring Paystack

Payment Settings

  1. In the Payment Settings tab, find the Paystack section
  2. Toggle the Enabled switch to activate Paystack
  3. Configure Test Mode:
    • Toggle Test Mode to use test credentials during development
    • When enabled, you'll see "Using Test Keys" indicator
  4. 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
  5. Click Save Changes

Obtaining Paystack API Credentials

  1. Log in to your Paystack Dashboard
  2. Navigate to Settings > API Keys & Webhooks
  3. Copy your Public and Secret keys (both test and live versions)
  4. Configure webhook URL as: https://your-domain.com/payment/paystack/webhook

Testing Payment Gateways

After configuring your payment gateways:

  1. Switch to Sandbox/Test mode if available
  2. Create a test course with a price
  3. Try purchasing the course using the test credentials
  4. 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.

Released under the MIT License.