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.
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| razorpay-2.0.1.tar.gz | 197.2 kB | Without provenance | Details for razorpay-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| razorpay-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for razorpay-2.0.1-py3-none-any.whl |
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
|
Security for razorpay 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.