Overview

Razorpay is a financial technology company that provides payment solutions to businesses operating primarily in India. Its platform offers a suite of products designed to manage the entire payment lifecycle, from accepting customer payments to automating payouts and handling payroll. The core offering is a payment gateway that enables merchants to accept payments through various methods, including credit and debit cards, Net Banking, UPI, and digital wallets, from both domestic and international customers (with specific considerations for international transactions)Razorpay International Payments.

The platform is optimized for the Indian market, incorporating local payment methods and adhering to regulatory requirements set by the Reserve Bank of India (RBI). This focus makes it a solution for businesses, from startups to large enterprises, seeking to operate within India's digital economy. Beyond payment acceptance, Razorpay extends its services to include subscription management, allowing businesses to set up recurring billing models, and a payout system known as 'Razorpay Route' for distributing funds to vendors, employees, or marketplace sellersRazorpay Route Documentation.

Razorpay prioritizes developer experience, offering comprehensive API documentation and a range of SDKs across multiple programming languages like Python, Node.js, and Java. These resources are designed to facilitate integration into existing systems, allowing businesses to customize their payment flows. The availability of a sandbox environment further supports developers in testing integrations before deployment, which is a common practice in API-first payment platforms according to industry standardsMozilla Developer Network Sandbox Definition.

The company also provides additional financial tools such as 'Payroll' for automating salary disbursements and tax compliance, 'Capital' for business financing, and 'Magic Checkout' to optimize the checkout experience. These offerings position Razorpay as a comprehensive financial platform rather than solely a payment gateway, addressing various operational aspects for businesses. Compliance with standards such as PCI DSS Level 1 and GDPR is maintained to ensure secure and legally compliant transaction processingRazorpay API Reference.

Key features

  • Payment Gateway: Facilitates online payment acceptance across various methods including credit/debit cards, Net Banking, UPI, and digital wallets.
  • Subscription Management: Enables recurring billing and automated collection for subscription-based services.
  • Razorpay Route: A payout solution for automating fund disbursals to multiple beneficiaries, such as vendors or employees.
  • Payment Links: Allows businesses to generate and share payment links for collecting payments without a full website integration.
  • Invoice Management: Tools for creating, sending, and managing invoices directly through the platform.
  • API and SDKs: Provides a RESTful API and SDKs for Android, iOS, React Native, Flutter, Node.js, Python, PHP, Ruby, Java, and .NET for custom integrations.
  • Analytics and Reporting: Dashboard access for monitoring transactions, settlements, and generating financial reports.
  • Fraud Detection and Risk Management: Built-in mechanisms to identify and mitigate fraudulent transactions.
  • Multi-currency Support: Processes transactions in various international currencies, with conversion capabilities for local settlement.
  • Developer Sandbox: A testing environment for developers to integrate and validate their payment flows before going live.

Pricing

Razorpay operates on a transaction-based pricing model, with no setup fees. The standard rates apply for most payment methods, while custom rates may be available for specific business types or high-volume transactions.

Feature Pricing Model Rate (Domestic) Notes
Payment Gateway Per transaction 2% For credit/debit cards, Net Banking, UPI, wallets. GST extra.
International Payments Per transaction 3% For international cards. May vary based on currency.
Diners/Amex Cards Per transaction 3% Specific rate for these card types.
EMI, Pay Later Per transaction 2.5% - 3% Rates vary by provider and tenure.
Custom Pricing Negotiated Variable Available for businesses with high transaction volumes or specific needs.

For the most current and detailed pricing information, refer to the official Razorpay pricing page.

Common integrations

  • E-commerce Platforms: Plugins and modules for platforms like WooCommerce, Shopify (via third-party connectors), Magento, and OpenCart.
  • Accounting Software: Integrations with platforms for automated reconciliation and financial reporting.
  • CRM Systems: Connections to manage customer payment data and subscription statuses within CRM tools.
  • CMS and Website Builders: Direct and indirect integrations with various content management systems.
  • Mobile Applications: SDKs for iOS and Android to embed payment functionality directly into native appsRazorpay Mobile SDKs.
  • Programming Languages: Libraries and SDKs for back-end integration with Node.js, Python, PHP, Ruby, Java, and .NET.

Alternatives

  • Paytm Payment Gateway: Another prominent payment gateway in India, offering a wide array of payment options and wallet integration.
  • Stripe: A global payment processing platform known for its developer-friendly APIs and extensive international reach, though its primary focus is not solely India.
  • Cashfree Payments: An Indian payment and banking solution provider, offering payment gateway, payouts, and other financial services.
  • CCAvenue: A longstanding payment gateway in India offering a variety of payment options and multi-currency support.
  • Adyen: A global payment platform that offers end-to-end infrastructure for accepting payments, managing risk, and processing payouts worldwideAdyen Documentation.

Getting started

To begin integrating Razorpay, developers typically start by setting up an account, obtaining API keys, and then utilizing one of the provided SDKs. The following Python example demonstrates how to create a basic order using the Razorpay Python SDK:

import razorpay

# Replace with your actual Key ID and Key Secret from the Razorpay Dashboard
KEY_ID = 'YOUR_KEY_ID'
KEY_SECRET = 'YOUR_KEY_SECRET'

client = razorpay.Client(auth=(KEY_ID, KEY_SECRET))
client.set_app_details({"title": "apispine", "version": "1.0"})

# Create an order
data = {
    "amount": 50000,  # amount in paise (e.g., 50000 paise = 500 INR)
    "currency": "INR",
    "receipt": "receipt#1",
    "notes": {
        "key1": "value3",
        "key2": "value2"
    }
}

try:
    order = client.order.create(data=data)
    print("Order created successfully:")
    print(order)
except Exception as e:
    print(f"Error creating order: {e}")

This code snippet initializes the Razorpay client with API credentials and then calls the order.create method to generate a new payment order. The amount is specified in the smallest currency unit (e.g., paise for INR). After creating an order, the next step in a typical integration would involve displaying a payment form to the user, either through a hosted checkout page or by embedding Razorpay's checkout directly using JavaScript. Detailed instructions and further examples for various programming languages are available in the Razorpay API Reference.