Skip to main content

Razorpay for django-payments

PyPi Release python Build Status codecov

WARNING: only the paisa (INR) currency is supported by Razorpay as of now.

Installation

Add django-payments-razorpay to your project requirements and/ or run the installation with:

pip install django-payments-razorpay

Provider parameters

First of all, to create your API credentials, you need to go in your Razorpay account settings, then in the API Keys section (direct link).

Key Required Type Description
public_key Yes string Your Razorpay key id
secret_key Yes string Your Razorpay secret key id
image No string An absolute or relative link to your store logo
name No string Your store name
prefill No boolean Pre-fill the email and customer's full name if set to True (disabled by default)

Example configuration

In your settings.py file, you can add the following keys or append the data to them:

PAYMENT_VARIANTS = {
    'razorpay': ('django_payments_razorpay.RazorPayProvider', {
        'public_key': 'RAZORPAY_PUBLIC_KEY',
        'secret_key': 'RAZORPAY_SECRET_KEY'})}

Note: if you are using Saleor, you may want to add Razorpay to the checkout payment choices:

CHECKOUT_PAYMENT_CHOICES = [
    ('razorpay', 'RazorPay')]

Notes

  1. Razorpay automatically capture the whole payment amount;
  2. In test mode, you can use 4111 1111 1111 1111 (or any other valid credit card numbers) with any future expiry date and CVV to pay orders.

Metadata

Release files for django-payments-razorpay 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-payments-razorpay 1.0
File Size Uploaded Provenance Actions
django-payments-razorpay-1.0.tar.gz 4.0 kB Without provenance Details for django-payments-razorpay-1.0.tar.gz

Release files / django-payments-razorpay-1.0.tar.gz

Download URL django-payments-razorpay-1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cf9b3c1333ce85968c3dfb979775f40d9a86c77da759ab78d8c1b9d4986bf69f
BLAKE2b-256 checksum
How to use checksums
2022edcb9f21570f512654c3d04733b4fc949ca9e33530cffbc41d132cf6b2cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Security for django-payments-razorpay 1.0

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.

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