razorpay
Razorpay Python Client
Decision gist · record as of 2026-08-14
Yes. Razorpay is the official Python client for a major payment gateway serving India, actively maintained with no known vulnerabilities, low install friction, and permissive licensing. Install it if you are building a merchant application that needs to integrate Razorpay payments; avoid it if you use a different payment processor.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- You must obtain API credentials (key and secret) from the Razorpay dashboard before instantiating a client.
- Low install friction with a single lightweight dependency (requests).
- Actively maintained with recent commits and a stable release cadence; marked as Beta in development status but has been in production use since 2015.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
last release 2026-03-09 (158 days) · last repo commit 2026-07-23 · 172 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,100,087 downloads/mo, #4,370 on PyPI
Alternatives
Verify before relying
import razorpay
client = razorpay.Client(auth=("YOUR_API_KEY", "YOUR_API_SECRET"))
client.enable_retry(True)
client.set_app_details({"title": "MyApp", "version": "1.0"})- Whether all listed resource types (Account, Addon, Item, Customer, etc.) are fully implemented and tested in version 2.0.1
- Specific Python version compatibility beyond the classifiers listed (3.4–3.6 are declared but current support is unspecified)
What it is and what it does
Razorpay is a Python wrapper around the Razorpay payment gateway API, designed for merchants in India who need to programmatically manage payments, orders, refunds, subscriptions, and related financial workflows. It abstracts HTTP communication via the requests library and provides a client-based interface to a large API surface covering accounts, customers, tokens, invoices, payment links, QR codes, and dispute handling.
The library is straightforward to set up: instantiate a client with your API credentials, optionally enable retries and set app metadata, then call methods on the client to interact with Razorpay resources. It is actively maintained, carries no known vulnerabilities, and has been in use since 2015, though it remains classified as Beta.
Use it for
- Build a Django or Flask web application that accepts payments and needs to create orders and process refunds via Razorpay.
- Automate subscription billing workflows by programmatically managing recurring charges and customer tokens.
- Generate and manage payment links or QR codes for customers without building custom payment UI.
- Reconcile transactions by fetching payment and settlement data from Razorpay into your internal ledger.
- Handle payment verification and dispute resolution as part of a merchant's post-transaction workflow.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Razorpay is the official Python client for a major payment gateway serving India, actively maintained with no known vulnerabilities, low install friction, and permissive licensing. Install it if you are building a merchant application that needs to integrate Razorpay payments; avoid it if you use a different payment processor.
Install
razorpay on PyPI
Before you install
Low install friction with a single lightweight dependency (requests). Actively maintained with recent commits and a stable release cadence; marked as Beta in development status but has been in production use since 2015.
You must obtain API credentials (key and secret) from the Razorpay dashboard before instantiating a client.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
import razorpay
client = razorpay.Client(auth=("YOUR_API_KEY", "YOUR_API_SECRET"))
client.enable_retry(True)
client.set_app_details({"title": "MyApp", "version": "1.0"})
Verify before relying
- Whether all listed resource types (Account, Addon, Item, Customer, etc.) are fully implemented and tested in version 2.0.1
- Specific Python version compatibility beyond the classifiers listed (3.4–3.6 are declared but current support is unspecified)
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagerequests |
| Maintenance | Actively maintained 158 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,100,087 / month, #4,370 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Software Development :: Libraries :: Python Modules |
Evidence: razorpay-2.0.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “razorpay api client”
- razorpayPython client library for the Razorpay payment gateway API, enabling…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also braintree · mercadopago · recurly · mollie-api-python · yookassa · paypalrestsdk · beanstream · chargehound · google-shopping-merchant-products · Adyen