How to Set Up Razorpay: The Ultimate Guide for Indian E-commerce

When running an online store in India, your checkout experience can make or break your business. If a customer encounters a broken payment screen or fails to find their preferred UPI app, they will instantly abandon their cart.
When we launched packmymeat.com, we needed a payment gateway that was incredibly secure, trusted by local shoppers, and capable of handling instant payments with a near-zero failure rate. That is why we chose Razorpay.
In this step-by-step tutorial, we will show you exactly how to integrate Razorpay with your WordPress and WooCommerce store, configure your API keys, and optimize your checkout to maximize sales.

Why We Chose Razorpay for Pack My Meat
Before settling on Razorpay, we evaluated multiple Indian payment gateways. Razorpay won our trust for three primary reasons:
    • Flawless Mobile UPI Flow: Over 70% of our customers prefer paying via UPI (Google Pay, PhonePe, Paytm). Razorpay provides a native, seamless intent flow that opens the user’s payment app instantly without clunky redirects.
    • Comprehensive Payment Modes: It supports Credit/Debit cards, NetBanking, local wallets, and even corporate pay-later options out of the box.
    • The Power of Payment Links: Beyond standard website checkouts, Razorpay lets us generate instant Payment Links. If a customer places a custom order via WhatsApp or phone, we can text them a link to complete their secure payment in seconds.


Step 1: Sign Up for a Razorpay Partner/Merchant Account
Before adding anything to WordPress, you need an active Razorpay profile to process live money.
    1. Go to the official website using our partner link: [👉 Click Here to Create Your Razorpay Account].
    2. Register using your business email address or mobile number.
    3. Complete your business KYC. You will need to upload your basic business registration details, PAN card, and bank account information so Razorpay can route your customer payouts to your bank.

🎁 Exclusive Setup Bonus for Our Readers:
Setting up payment gateways and configuring web settings can feel overwhelming. If you sign up for your account using our link above, our technical team will jump on a 1-hour professional consultation call with you for FREE to help review your setup.
🎯 [👉 Click Here to Activate Your Razorpay Partner Account Today]


Step 2: Install the Official Razorpay WooCommerce Plugin
Once your account dashboard is approved, it is time to connect it directly to your WordPress website.
    1. Log into your WordPress admin dashboard.
    2. Navigate to Plugins > Add New Plugin.
    3. Search for “Razorpay For WooCommerce”.
    4. Click Install Now, and then click Activate.


Step 3: Generate and Configure Your API Keys
To securely pass payment data between your Hostinger server and Razorpay, you must generate unique encrypted keys.
    1. Log into your Razorpay Dashboard.
    2. Switch to Live Mode on the top menu (or use Test Mode if you are still building your store).
    3. Navigate to Settings > API Keys > Generate Key.
    4. Copy both the Key ID and the Key Secret generated on your screen. Keep these completely private!
    5. Return to your WordPress dashboard and go to WooCommerce > Settings > Payments.
    6. Click Manage next to Razorpay.
    7. Paste your Key ID and Key Secret into their respective text boxes, then click Save Changes.


Step 4: Turn on Webhooks for Instant Order Updates
Webhooks are critical background scripts. They ensure that if a customer pays successfully but closes their browser early, Razorpay still communicates with WordPress to automatically mark the order as “Paid” and “Processing”.
    1. Inside your Razorpay Dashboard, go to Settings > Webhooks > Add New Webhook.
    2. Copy the Webhook URL displayed in your WordPress WooCommerce Razorpay settings page and paste it into Razorpay.
    3. Set the Secret key passphrase exactly as instructed on your WordPress setup screen.
    4. Under Active Events, check the box for order.paid.
    5. Click Save. Your website is now fully live and ready to securely process transactions!


Don’t Have Time to Configure Payments and Security? Let Us Help!
Handling financial configurations, managing API integrations, and ensuring your site meets strict digital security standards requires meticulous technical attention. One wrong setting can lead to failed customer payments and lost revenue.
If you are a busy business owner who wants a completely automated, secure, and professionally designed online storefront without dealing with the code, our elite tech team is here for you. We offer end-to-end complete E-commerce Web Development & Design services.
How our team builds your automated store:
    • Flawless installation of WordPress, WooCommerce, and secure payment setups.
    • Custom API and Webhook programming for automated, real-time payment tracking.
    • Highly responsive, beautifully custom checkout designs tailored to your brand.
    • Integration with business tools to scale your processing seamlessly.

Let our professionals build a secure machine for your business while you focus on operations. [👉 Click Here to Get a Free Custom Quote Today!]
🤖 What’s Next for Your Store?
Now that your hosting is blazing fast and your payments are secure, it is time to automate your operations. Check out our full [Tools We Use] page to see how we use Make.com to automatically send instant WhatsApp tracking notifications to customers the second their payment clears!

Leave a Reply