PayU Payment Gateway Integration

PayU is a leading payment gateway that enables businesses to accept digital payments across 50+ emerging markets, with a strong presence in India. It supports over 150 payment methods, including credit/debit cards, net banking, UPI, wallets, BNPL (Buy Now, Pay Later), and EMI options, serving over 500,000 merchants. PayU offers features like one-click checkouts, recurring payments, instant refunds, and robust fraud prevention, making it ideal for e-commerce, subscriptions, and cross-border transactions.

This guide walks you through integrating PayU into your application, from account creation to live deployment.


Step 1: Log in or Sign Up

  1. Visit PayU: Go to PayU India (or your regional site, e.g., PayU Global) and click Get Started or Sign Up to create a merchant account, or Log In if you have one.
  2. Account Creation: Provide your email, business name, phone number, and details like company type (e.g., proprietorship, Pvt. Ltd.). Select a plan if prompted (basic integration is free with transaction fees).
  3. Email Verification: Check your inbox for a verification email from PayU and click the link to activate your account.
  4. Dashboard Access: Log in to the PayU Dashboard at dashboard.payu.in (India) or your regional equivalent to manage payments, API keys, and settings. A test environment is available for development.

Step 2: Set Up Your Account

Before processing payments, configure your PayU account:

  1. Complete Your Profile:
  1. Business Verification (Required for Live Mode):
  1. Add a Settlement Bank:
  1. Test Mode: Use the test environment at test.payu.in with test credentials to simulate transactions without verification.

Step 3: Obtain API Credentials

PayU provides credentials for integration:

How to Get Your Credentials:
  1. Log in to the PayU Dashboard.
  2. Go to Integration > API Keys (or Settings > Integration Details).
  3. Find:
  1. Key Security: Keep the Merchant Salt confidential—use it only server-side. Copy both credentials securely.
  2. Add these to your application’s Admin Panel under System Settings > Payment Gateways > PayU.

Step 4: Configure Payment Methods

PayU supports over 150 payment methods, customizable in the Dashboard:

  1. Go to Settings > Payment Methods.
  2. Available methods include:
  1. Enable desired methods by toggling them on. Contact support@payu.in for additional options or cross-border payments.
  2. These methods will appear in your checkout flow once integrated.

Step 5: Set Up Webhooks

Webhooks notify your server of payment events (e.g., transaction success):

  1. In the Dashboard, go to Integration > Webhooks.
  2. Click Add Webhook.
  3. Webhook URL:
  1. Events: PayU sends events like:
  1. Save the webhook. Secure it by validating the hash (see Step 7).
  2. Testing: Use the test environment to simulate webhook calls.

Step 6: Set Up Credentials in Our Dashboard

Integrate PayU into your application:

  1. Log in to your application’s Admin Panel.
  2. Navigate to System Settings > Payment Gateways > PayU.
PayU API Keys
  1. Fill out the configuration form:
PayU API Keys
  1. Detailed Fields:
  1. Click Submit to save. Your PayU gateway is now configured.

Step 7: Test the Integration

Test your setup in Test Mode:

  1. Enable Test Mode:
  1. Simulate Payments:
  1. Hash Calculation: Generate a hash for requests using: sha512(key|txnid|amount|productinfo|firstname|email|udf1|udf2|udf3|udf4|udf5||||||salt). Validate the response hash similarly.
  2. Verify Webhooks:
  1. Debugging: If issues arise, check the Dashboard’s Transactions tab or use the Verify Payment API.

Step 8: Enable Live Mode

After successful testing:

  1. PayU Dashboard:
  1. Admin Panel:
  1. Webhook Confirmation: Verify the webhook URL is set in the live Dashboard.

Step 9: Go Live

Launch your PayU integration:

  1. Start Accepting Payments:
  1. Live Verification:
  1. Troubleshooting:

Additional Tips

Note:

If you need further help, our support team is available 24/7. Reach out at softivus@gmail.com or through the Admin Panel. Let’s make your PayU integration seamless and successful!