Skip to main content

An improved Razorpay python SDK

Project description

Razorpay Python Client

PyPI Version PyPI - Python Version PyPI - Downloads License CI

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-py

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_py-0.0.3.tar.gz (199.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_py-0.0.3-py3-none-any.whl (179.8 kB view details)

Uploaded Python 3

File details

Details for the file razorpay_py-0.0.3.tar.gz.

File metadata

  • Download URL: razorpay_py-0.0.3.tar.gz
  • Upload date:
  • Size: 199.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.9

File hashes

Hashes for razorpay_py-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c04a573267a35613c747a8da52c71489f74b233c566087eb680fb1b43dc657ab
MD5 8361069ec11a52419c75eaa03aede6bb
BLAKE2b-256 21484c89b31419db253c8bab66bd37df7fff658a3646d102344d207f99dadfd6

See more details on using hashes here.

File details

Details for the file razorpay_py-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: razorpay_py-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 179.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.9

File hashes

Hashes for razorpay_py-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c3d551efb9a3c3076cd193327060cdd4ad2b9f45630126331ea61fa482b42d9
MD5 303e732f4cc358d580b96048775f45a4
BLAKE2b-256 3cb7b507e8bfed758995e7549ce353dfbdb07e99b50c4e31c3c03d0f9b7efbec

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