Razorpay Python Client
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
$ pip install razorpay
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.
import razorpay
client = razorpay.Client(auth=("<YOUR_API_KEY>", "<YOUR_API_SECRET>"))
client.enable_retry(True) # Enable retry mechanism for failed API calls
App Details
After setting up client, you can set your app details before making any request to Razorpay using the following:
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
Bugs? Feature requests? Pull requests?
All of those are welcome. You can file issues or submit pull requests in this repository.
Release files for razorpay 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| razorpay-2.0.1.tar.gz | 197.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| razorpay-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 374.1 kB
Release files / razorpay-2.0.1.tar.gz
| Download URL | razorpay-2.0.1.tar.gz |
|---|---|
| Size | 197.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a766b9019e496c995906f75c31900bff8b2709bea251f1771925d742cba53e5b
|
|
BLAKE2b-256 checksum How to use checksums |
d1e4877eb8ba68bb5212021b25a4f97b6c3f693e08bb6b319fc97c966c4391a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / razorpay-2.0.1-py3-none-any.whl
| Download URL | razorpay-2.0.1-py3-none-any.whl |
|---|---|
| Size | 176.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6a60c78203a3e1d3fc428e6fadf15bc67f75bd67217eaf9dc9925c87e98bc7a
|
|
BLAKE2b-256 checksum How to use checksums |
7f35e8fbf239cb16595007839408f7645bc952d8490f5dd50f9049434f296ce8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|