Digital Matty Pvt Ltd

How to Integrate a Payment Gateway to Your WordPress Website

If you’re selling products or services online, your website must accept payments in a secure and smooth way. That’s where a payment gateway comes in. It helps you accept money through credit/debit cards, UPI, wallets, and net banking directly on your website.

Thanks to WordPress plugins, adding a payment gateway is now very simple. The most popular way to do it is by using WooCommerce, a free plugin that turns your website into an online store.

Step-by-Step Guide to Add a Payment Gateway in WordPress

  • Install WooCommerce

    • Go to your WordPress dashboard.

    • Click Plugins > Add New, search for WooCommerce.

    • Click Install, then Activate.

    • WooCommerce will launch a setup wizard to help you enter your store’s basic information (location, currency, etc.).

  • Enable a Payment Gateway

    • After setup, go to WooCommerce > Settings > Payments.

    • From here, you can enable gateways like PayPal, Stripe, Razorpay, or Paytm.

  • Add Razorpay (Popular in India)

    • Go to Plugins > Add New, search for Razorpay for WooCommerce.

    • Install and activate the plugin.

  • Create Razorpay API Keys

    • Sign up at razorpay.com.

    • Go to your Razorpay Dashboard > Settings > API Keys.

    • Generate and copy your Key ID and Secret Key.

  • Configure Razorpay in WordPress

    • In your WordPress dashboard, go to WooCommerce > Settings > Payments > Razorpay.

    • Paste the API keys and Save changes.

    • Disable test mode before going live.

  • Test Your Payment Gateway

    • Place a test order using Razorpay’s sandbox/test mode or try a small live transaction.

    • Make sure everything works smoothly before launching to customers.

Adding a payment gateway makes it easier for customers to trust and pay you online — anytime, from anywhere in India.

👉 Want it done faster and professionally? Contact Digital Matty to integrate payment gateways and start selling with confidence today!