Skip to main content

Razorpay Python Client

PyPI Version Coverage Status PyPI License

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)

Source distribution for razorpay 2.0.1
File Size Uploaded
razorpay-2.0.1.tar.gz 197.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for razorpay 2.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.3.1

2 release files

1.3.0

1 release file

1.2.0

2 release files

1.1.1

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.3.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.1.0a0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page