Turn on PayPal to let buyers pay through PayPal. Buyers pay on PayPal’s own page and come back to a receipt on your site.
Your site only learns whether the payment went through. Only administrators can open LMS → Payments.
Set up PayPal
- Go to LMS → Payments and find the PayPal card.
- Turn on Accept PayPal.
- Leave Mode on Sandbox: no real money moves while you try it out.
- Copy the app’s credentials from the PayPal Developer Dashboard, Apps & Credentials, Sandbox, into Sandbox client ID and Sandbox secret.
- Add the webhook address shown on the card to the app, with the Payment capture completed, denied and refunded events, and copy the webhook’s ID into Sandbox webhook ID.
- Press Save on the card.
The card’s header says Taking payments when buyers can use PayPal, or Off.
The fields
| Field | What it does |
|---|---|
| Accept PayPal | Turns the method on. |
| Name at checkout | What buyers see. The default is “PayPal”. |
| Mode | Sandbox: no real money moves (the default) or Live. |
| Sandbox client ID, Sandbox secret | From the PayPal Developer Dashboard, Apps & Credentials, Sandbox. |
| Sandbox webhook ID | Add the webhook address shown on the card to the app, with the Payment capture completed, denied and refunded events, and copy its ID here. |
| Live client ID, Live secret, Live webhook ID | The same for live mode. |
Keys are stored encrypted and never shown again. A saved key shows as “Saved (…). Type to replace.” and has a Remove saved key link.
Currency support
PayPal shows as Off if your store currency is one PayPal does not support. The store currency is set on the Prices and tax card; see Prices and tax.
Sandbox mode and going live
Sandbox mode takes no real money
While Stripe or PayPal is in test or sandbox mode, the checkout shows a Test mode label next to it, and orders paid that way are marked as test payments on LMS → Orders. No real money moves. Switch Mode to Live when you are ready to take real money.
To go live, set Mode to Live, fill in Live client ID, Live secret and Live webhook ID the same way for live mode, and press Save on the card.
What is sent to PayPal
The plugin contacts PayPal only once you turn it on and enter its keys. When a buyer places an order and chooses PayPal, the plugin sends PayPal the order number, the course names, the total, the currency, the site’s name and the addresses to return to. When the buyer returns, the plugin asks PayPal to capture the payment. Refunds made on LMS → Orders send PayPal the capture’s reference and the amount. See External services.
Refunds you make in the PayPal dashboard also reach the site through the webhook, if you set it up. See Orders and refunds.