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.0.tar.gz (197.1 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.0-py3-none-any.whl (176.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for razorpay-2.0.0.tar.gz
Algorithm Hash digest
SHA256 929aef2f4aec8190dfe12b79ba09e83c39086f6ea0bffa0586b719c5b9054450
MD5 25cd05e1ca608d6f2a8200b13c29b5e1
BLAKE2b-256 65d62b8d750c4c7c1b9fdcc997ac5b0b5c4a165948931f82b3ce3fcab049f775

See more details on using hashes here.

File details

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

File metadata

  • Download URL: razorpay-2.0.0-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.18

File hashes

Hashes for razorpay-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 524cf1726f673fc72d448f83fd2ea479526d2dd48641ca75ee9a58e25300784a
MD5 44378be7a660ccb3375d7872a1de77ac
BLAKE2b-256 4bf6d16cd89374c16cfdce2e30b80e98afd095713ae5fe33fd813b0a89ee1e67

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