Skip to main content

Razorpay Python Client

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

razorpay-2.0.1.tar.gz (197.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

razorpay-2.0.1-py3-none-any.whl (176.9 kB view details)

Uploaded Python 3

File details

Details for the file razorpay-2.0.1.tar.gz.

File metadata

  • Download URL: razorpay-2.0.1.tar.gz
  • Upload date:
  • Size: 197.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for razorpay-2.0.1.tar.gz
Algorithm Hash digest
SHA256 a766b9019e496c995906f75c31900bff8b2709bea251f1771925d742cba53e5b
MD5 5cebfe52d0511f0f821193c174762b2b
BLAKE2b-256 d1e4877eb8ba68bb5212021b25a4f97b6c3f693e08bb6b319fc97c966c4391a3

See more details on using hashes here.

File details

Details for the file razorpay-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: razorpay-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 176.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for razorpay-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6a60c78203a3e1d3fc428e6fadf15bc67f75bd67217eaf9dc9925c87e98bc7a
MD5 ab3984baee48859fd207c7d9f4916005
BLAKE2b-256 7f35e8fbf239cb16595007839408f7645bc952d8490f5dd50f9049434f296ce8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page