Skip to content
  • There are no suggestions because the search field is empty.

Configure Paypal Payment Gateway

PayPal payment gateway facilitates secure online transactions, allowing businesses to accept payments from customers.

In this Article:

  1. Creating a Paypal Account
  2. Generating the Secret Keys
  3. Configure Paypal Payment Gateway on Learnyst

Create a PayPal Account:

  • Visit paypal.com and click on Sign Up located in the top-right corner.
  • Fill in the required details on the subsequent page and create an account.

Note that if you plan to use PayPal for business payments, you'll need to upgrade to a business account. In the meantime, you can use it in testing mode, PayPal sandbox for development purposes.


Generating the Secret Keys:

  • After reaching paypal.com, scroll down to the footer and click on Developers. Alternatively, you can visit the developers page by clicking on the provided link.

    Configure Paypal Payment Gateway step 1
  • Click Apps and Credentials option on the navigation bar. Next, proceed by clicking on the Create App button on the top right to set up your payment gateway.

    Configure Paypal Payment Gateway step 2
  • Enter the required details. Once completed, you'll be provided with the Client ID and the Secret key

    Configure Paypal Payment Gateway step 3
  • Make sure to securely record the Client ID and Secret Key. These will be utilized in the setup process when configuring the payment gateway within Learnyst.

    Configure Paypal Payment Gateway step 4

Configure PayPal Payment Gateway on Learnyst:

  • Navigate to the payment gateway settings within your Learnyst account.
  • Click on Add Payment Gateway and select PayPal.

    Configure Paypal Payment Gateway step 5
  • Enter the email associated with your PayPal app.
  • Input the Client ID and Secret Key obtained from PayPal's API credentials.

    Configure Paypal Payment Gateway step 6
  • Set Up Webhook

    Webhooks in PayPal provide instant notifications about key events, such as successful payments, directly to your preferred platform. This helps streamline payment management.

    • Go back to your PayPal Developer Dashboard.
    • Make sure you are working in the correct environment:
      • Live for actual customer payments
      • Sandbox for testing
    • Go to Apps & Credentials.
    • Select the relevant Live app.
    • Open the app details.
    • Go to the Webhooks section.
    • Click Add Webhook.
    • Enter the following webhook URL:

    https://api.learnyst.com/learner/v7/webhook/paypal_webhook

    • Select the following event:

    PAYMENT.CAPTURE.COMPLETED

    • Click Save to create the webhook.
  •  Go back to your Learnyst Admin dashboard  and select publish and click on Save to Publish the Payment Gateway.
    Configure Paypal Payment Gateway step 7
  • Optionally, set it as the default payment gateway if desired.