# Razorpay Python Client
[](https://pypi.python.org/pypi/razorpay-py)


[](https://opensource.org/licenses/MIT)
[](https://github.com/sunsergdev/razorpay-python/actions/workflows/ci.yml)
Python bindings for interacting with the Razorpay API
This is primarily meant for merchants who wish to perform interactions with the
Razorpay API programatically.
## Installation
```sh
$ pip install razorpay-py
```
## Usage
You need to setup your key and secret using the following: You can find your API
keys at <https://dashboard.razorpay.com/#/app/keys>.
```py
import razorpay
client = razorpay.Client(auth=("<YOUR_API_KEY>", "<YOUR_API_SECRET>"))
```
## App Details
After setting up client, you can set your app details before making any request
to Razorpay using the following:
```py
client.set_app_details({"title" : "<YOUR_APP_TITLE>", "version" : "<YOUR_APP_VERSION>"})
```
For example, you can set the title to `Django` and version to `1.8.17`. Please
ensure that both app title and version are strings.
## Supported Resources
- [Account](documents/account.md)
- [Addon](documents/addon.md)
- [Item](documents/items.md)
- [Customer](documents/customer.md)
- [Token](documents/token.md)
- [Fund](documents/fund.md)
- [Order](documents/order.md)
- [Payments](documents/payment.md)
- [Settlements](documents/settlement.md)
- [Refunds](documents/refund.md)
- [Invoice](documents/invoice.md)
- [Subscriptions](documents/subscription.md)
- [Payment Links](documents/paymentLink.md)
- [Smart Collect](documents/virtualAccount.md)
- [Route](documents/transfer.md)
- [QR Code](documents/qrcode.md)
- [Emandate](documents/emandate.md)
- [Cards](documents/card.md)
- [Paper NACH](documents/papernach.md)
- [UPI](documents/upi.md)
- [Register Emandate and Charge First Payment Together](documents/registerEmandate.md)
- [Register NACH and Charge First Payment Together](documents/registerNach.md)
- [Payment Verification](documents/paymentVerfication.md)
- [Product Configuration](documents/productConfiguration.md)
- [Stakeholder](documents/stakeholder.md)
- [Webhook](documents/webhook.md)
- [Document](documents/document.md)
- [Dispute](documents/dispute.md)
- [Iin](documents/iin.md)
---
## Bugs? Feature requests? Pull requests?
All of those are welcome. You can [file issues][issues] or [submit pull
requests][pulls] in this repository.
[issues]: https://github.com/sunsergdev/razorpay-python/issues
[pulls]: https://github.com/sunsergdev/razorpay-python/pulls
Raw data
{
"_id": null,
"home_page": null,
"name": "razorpay-py",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "razorpay, payment, gateway, india",
"author": "Team Razorpay, DotMyStyle (Sunserg Technologies Pvt Ltd.)",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/74/49/d00f73ec9dd45b3b1fb72a1cd5cf00fbb6ae4cce0adfca3053f45d250ca6/razorpay_py-0.0.2.tar.gz",
"platform": null,
"description": "# Razorpay Python Client\n\n[](https://pypi.python.org/pypi/razorpay-py)\n\n\n[](https://opensource.org/licenses/MIT)\n[](https://github.com/sunsergdev/razorpay-python/actions/workflows/ci.yml)\n\nPython bindings for interacting with the Razorpay API\n\nThis is primarily meant for merchants who wish to perform interactions with the\nRazorpay API programatically.\n\n## Installation\n\n```sh\n$ pip install razorpay-py\n```\n\n## Usage\n\nYou need to setup your key and secret using the following: You can find your API\nkeys at <https://dashboard.razorpay.com/#/app/keys>.\n\n```py\nimport razorpay\nclient = razorpay.Client(auth=(\"<YOUR_API_KEY>\", \"<YOUR_API_SECRET>\"))\n```\n\n## App Details\n\nAfter setting up client, you can set your app details before making any request\nto Razorpay using the following:\n\n```py\nclient.set_app_details({\"title\" : \"<YOUR_APP_TITLE>\", \"version\" : \"<YOUR_APP_VERSION>\"})\n```\n\nFor example, you can set the title to `Django` and version to `1.8.17`. Please\nensure that both app title and version are strings.\n\n## Supported Resources\n\n- [Account](documents/account.md)\n\n- [Addon](documents/addon.md)\n\n- [Item](documents/items.md)\n\n- [Customer](documents/customer.md)\n\n- [Token](documents/token.md)\n\n- [Fund](documents/fund.md)\n\n- [Order](documents/order.md)\n\n- [Payments](documents/payment.md)\n\n- [Settlements](documents/settlement.md)\n\n- [Refunds](documents/refund.md)\n\n- [Invoice](documents/invoice.md)\n\n- [Subscriptions](documents/subscription.md)\n\n- [Payment Links](documents/paymentLink.md)\n\n- [Smart Collect](documents/virtualAccount.md)\n\n- [Route](documents/transfer.md)\n\n- [QR Code](documents/qrcode.md)\n\n- [Emandate](documents/emandate.md)\n\n- [Cards](documents/card.md)\n\n- [Paper NACH](documents/papernach.md)\n\n- [UPI](documents/upi.md)\n\n- [Register Emandate and Charge First Payment Together](documents/registerEmandate.md)\n\n- [Register NACH and Charge First Payment Together](documents/registerNach.md)\n\n- [Payment Verification](documents/paymentVerfication.md)\n\n- [Product Configuration](documents/productConfiguration.md)\n\n- [Stakeholder](documents/stakeholder.md)\n\n- [Webhook](documents/webhook.md)\n\n- [Document](documents/document.md)\n\n- [Dispute](documents/dispute.md)\n\n- [Iin](documents/iin.md)\n\n---\n\n## Bugs? Feature requests? Pull requests?\n\nAll of those are welcome. You can [file issues][issues] or [submit pull\nrequests][pulls] in this repository.\n\n[issues]: https://github.com/sunsergdev/razorpay-python/issues\n[pulls]: https://github.com/sunsergdev/razorpay-python/pulls\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "An improved Razorpay python SDK",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/sunsergdev/razorpay-python"
},
"split_keywords": [
"razorpay",
" payment",
" gateway",
" india"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "79dc93771775a15b66e44257aef943db9707b49b3ffc95c6cc1cde5575bef698",
"md5": "15746e57ad494f1090cd13fb0e805794",
"sha256": "45e51a86f40a5f71cbc0d87ab8cabdcc04b0f17ac6d78f62dbc78b57dc13aa8c"
},
"downloads": -1,
"filename": "razorpay_py-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "15746e57ad494f1090cd13fb0e805794",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 176872,
"upload_time": "2025-08-06T19:54:28",
"upload_time_iso_8601": "2025-08-06T19:54:28.183809Z",
"url": "https://files.pythonhosted.org/packages/79/dc/93771775a15b66e44257aef943db9707b49b3ffc95c6cc1cde5575bef698/razorpay_py-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7449d00f73ec9dd45b3b1fb72a1cd5cf00fbb6ae4cce0adfca3053f45d250ca6",
"md5": "c681ef6d580549458900e29cfc540c9a",
"sha256": "b96917797a08a6c3ef6ce4c1800660e4f61646db67ab9e5ff9ae2b1c9227689b"
},
"downloads": -1,
"filename": "razorpay_py-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "c681ef6d580549458900e29cfc540c9a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 196395,
"upload_time": "2025-08-06T19:54:29",
"upload_time_iso_8601": "2025-08-06T19:54:29.484811Z",
"url": "https://files.pythonhosted.org/packages/74/49/d00f73ec9dd45b3b1fb72a1cd5cf00fbb6ae4cce0adfca3053f45d250ca6/razorpay_py-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-06 19:54:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sunsergdev",
"github_project": "razorpay-python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "razorpay-py"
}