Skip to main content

A Django utility for eSewa signature generation.

Reason this release was yanked:

It had wrong credentials for the author of the package.

Project description

django-esewa

package for easy Esewa Integration

  • This package was created by Nischal Lamichhane as a Last Ditch error to help Python/Django Developers to Integrate E-sewa Payment Gateway into their application.
  • This version is only going to help devs generate necessary HMAC Key for the Signature field.
  • Newer versions will help in status checking for a transaction. (if this package takes off)

Function signature

def generate_signature(total_amount: float, transaction_uuid: str, key: str = "8gBm/:&EnhH.1/q", product_code: str = "EPAYTEST") -> str:

Usage

import esewa

signature = esewa.generate_signature()

During Developemnt

signature = generate_signature(1000,"123abc")

In Production

signature = generate_signature(1000,"123abc",<your_private_key>,<product_key>)

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

django_esewa-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

django_esewa-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file django_esewa-0.1.1.tar.gz.

File metadata

  • Download URL: django_esewa-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for django_esewa-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3f15fb2e5313bab826cb131b65e99b0975873654c8170e8120fd32171f761b94
MD5 4369cf733e6ea05850ef2ff6d5a32ca1
BLAKE2b-256 5c5a3e416a37cb02904ebae1e601f012483885e9149e132cab6f55cf2fd91ee4

See more details on using hashes here.

File details

Details for the file django_esewa-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_esewa-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f592537a4882501aefba170a735802f2d40b62bbd641428ad40e9f620f58c41
MD5 bc790dd7b6e37b693525f436b688464a
BLAKE2b-256 df1cad9cfdcb28237bb5102130749aa3913f95d9a5662be87da3fc4945894f91

See more details on using hashes here.

Supported by

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