Log in to PayU and retrieve your account credentials.
For this integration, you will need the following:
- Payment Form URL
- Merchant ID
- Account ID
- API Key
In Open LMS, go to:
Site Administration → Plugins → Local → Commerce → PayU payment provider
Enter the PayU credentials provided to you. These may vary depending on the country associated with your account.
Save your settings.
Next, set PayU as the default payment provider:
Go to:
Site Administration → General → Commerce → Commerce settings
Under Default Payment Provider, select PayU 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 PayU checkout page. Use one of the PayU test cards to complete the purchase and verify that the transaction is successful.