Skip to content
All work
OAuth-based Razorpay integration for WooCommerce — secure merchant onboarding, automated key rotation, and full Razorpay...

2024 · Creator & Maintainer

WooCommerce Razorpay OAuth

OAuth-based Razorpay integration for WooCommerce — secure merchant onboarding, automated key rotation, and full Razorpay API access without manual credential setup.

The challenge

Razorpay's standard WooCommerce flow makes merchants paste API keys into wp-admin and rotate them by hand — fragile, leak-prone, and a support nightmare for agencies onboarding clients.

The result

OAuth-based onboarding handles merchant authorisation, automatic key rotation, and webhook signing without the merchant ever touching credentials. Agencies onboard stores in minutes, not hours.

Year
2024
Role
Creator & Maintainer
Stack
4 teches
Status
Published

Overview

WooCommerce Razorpay OAuth replaces the standard API key flow with proper OAuth 2.0 merchant onboarding. Merchants authorise with one click; the plugin handles token exchange, storage, and rotation automatically.

Features

  • OAuth 2.0 merchant onboarding — no manual key copy-paste
  • Automated access token refresh before expiry
  • Full Razorpay API access: payments, refunds, webhooks, subscriptions
  • Multi-currency support
  • Webhook HMAC verification

Tech

PHP, WooCommerce payment gateway API, Razorpay REST API, OAuth 2.0.

Share 𝕏 in Link copied Couldn't copy — use the address bar

Written about this

Related work

Building something like WooCommerce Razorpay OAuth?

Tell me the problem rather than the spec. That is usually the faster conversation.