Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.

Setup

  1. Sign in to the Razorpay Dashboard: Go to https://dashboard.razorpay.com. Switch to Test Mode to experiment safely - test keys are prefixed rzp_test_.
  2. Generate API keys: Open Account & Settings → API Keys and generate a key pair. The Key Secret is shown only once - store it immediately.
  3. Set environment variables: Add RAZORPAY_KEY_ID and RAZORPAY_KEY_SECRET to your .env.
  4. Verify access: Run List Payments (Test Mode returns test transactions). Switch to Live Mode keys for production data.
  • Authentication is HTTP Basic: base64(KEY_ID:KEY_SECRET) in the Authorization header
  • Timestamps in from/to filters are Unix epoch seconds; amounts are in the smallest currency unit (paise for INR)
Provider API reference: https://razorpay.com/docs/api/

Tools

Example prompts

  • List my Razorpay payments from the last 7 days and summarize totals by status and method.
  • Show my recent Razorpay settlements with amounts and statuses.