PayPal
Log in to PayPal and navigate to create or access your API credentials.
For this integration, you will need the following credentials:
- Client ID
- Client Secret
- API URL Root
- Webhook ID
In Open LMS, go to:
Site Administration → Plugins → Local → Commerce → PayPal payment provider
Enter your PayPal credentials and configure the integration settings, such as supported currencies and environment (sandbox or live).
If using sandbox mode for testing, ensure you create test accounts within PayPal and use the sandbox credentials provided.
Once configured, save your settings.
Next, set PayPal as the default payment provider:
Go to:
Site Administration → General → Commerce → Commerce settings
Under Default Payment Provider, select PayPal and click Save changes.
To test the checkout flow:
Navigate to:https://your-site-url/local/commerce/browseproducts.php
Select a product and confirm that you are redirected to the PayPal checkout page. Complete the purchase using a sandbox test account and verify that the transaction is successful.