Connect PayU
Get the Merchant Key and Salt from your PayU India dashboard, connect them in Payment Configuration and register the payment webhook.
Use this guide to connect the school's own PayU India merchant account to the School ERP. The card is called PayU India. It needs two values: Merchant Key (key) and Salt (salt). PayU gives separate test and live values.
Before you start#
- The school has a standard PayU India merchant account in Indian rupees. For live payments, PayU must have completed its onboarding and website checks.
- You have the school administrator's login for the School ERP.
- Student records carry the father's mobile number and an e-mail address. PayU needs a name, e-mail and 10-digit mobile number for every payer.
- Read Set up a gateway in Payment Configuration once.
PayU's screens change from time to time. If a menu below looks different, follow PayU's own documentation for merchant key and salt, and for webhooks.
Get your key and salt from PayU#
- Sign in to the PayU dashboard and switch to test mode.
- Open the page in the developer settings that shows your merchant key and salt.
- Copy the Key and the Salt. If PayU shows more than one salt version, copy the Salt version 2 value.
Enter them in the School ERP#
- Open General Settings › Payment Configuration.
- Set Environment to Test / sandbox, then select Configure on the PayU India card.
- Check that Test environment is selected.
- Paste into Merchant Key (key) and Salt (salt).
- Select Save settings.
PayU has no Test connection button in the ERP. You prove the keys with a sandbox payment instead.
Register the webhook in PayU#
- In the ERP, select Copy Webhook URL below the form.
- In the PayU dashboard, open the webhooks page and add a webhook for successful payments and one for failed payments, both with this address.
- Save them.
The ERP sends PayU the address to return the parent to with every payment, so you do not type the Return URL into PayU. It is shown on the ERP screen for reference.
Test, then go live#
- Select Start sandbox payment and complete a test payment. See Test a payment end to end.
- When PayU has approved the account for live payments, copy the live key and salt.
- In the ERP panel select Live environment, paste them, tick Enable and use this gateway for fee payments and select Save settings.
- Copy the live Webhook URL and register it in PayU's live webhooks.
Good to know#
- The ERP confirms every PayU payment with PayU before posting a receipt.
- Full and partial refunds can be started from the ERP. See Refund an online payment.
- PayU settlements are not fetched into the ERP. Record each bank settlement by hand. See Reconciliation and settlements.
- The ERP uses PayU's standard hosted checkout in rupees. Split payments, mandates (auto-debit) and foreign-currency payments are not used.
Troubleshooting#
| What you see | What to do |
|---|---|
| A parent sees an error about the e-mail or mobile number before the checkout opens | Check the student's record: Father mobile must be a valid 10-digit mobile number and Email must be filled in. |
| The sandbox payment fails at the start | Check that the key and salt are from test mode and that the salt is the version 2 value. |
| Payments stay Awaiting confirmation | Check that the payment webhooks in PayU carry the address now shown on the ERP screen. The ERP still confirms payments by checking with PayU, only more slowly. |
