Registry / payments / paytmchecksum

paytmchecksum

JSON →
library1.7.0pypypiunverified

Library for generating and verifying checksums for Paytm payment gateway integration in Python. Version 1.7.0 is current; maintenance only, rarely updated.

pip install paytmchecksum
INSTALL
IMPORT
SIG · PAYTMCHECKSUM
P
paytmchecksum
paymentspythonv1.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

generateSignature
from paytmchecksum import generateSignature
from paytmchecksum import generateSignature

Quickstart example for generating and verifying a Paytm checksum.

from paytmchecksum import generateSignature, verifySignature # Generate signature params = { "MID": "YOUR_MID", "ORDERID": "ORDER123", "CUST_ID": "CUST123", "INDUSTRY_TYPE_ID": "Retail", "CHANNEL_ID": "WEB", "TXN_AMOUNT": "100.00", "WEBSITE": "YOUR_WEBSITE" } merchant_key = "YOUR_MERCHANT_KEY" signature = generateSignature(params, merchant_key) print("Generated signature:", signature) # Verify signature is_verified = verifySignature(params, merchant_key, signature) print("Verified:", is_verified)
Debug
Known issues
gotchaParameter order matters: generateSignature(params, merchant_key) – not (merchant_key, params).
fix
Always pass params dict first, then key.
affects: all
gotchaThe library expects string values in params dict, not integers or floats. All numbers must be converted to strings.
fix
Convert all numeric values to strings (e.g., str(amount)).
affects: all
breakingIn version 1.7.0, the function signature changed from using class-based API to standalone functions. Old code using PaytmChecksum class will break.
fix
Use from paytmchecksum import generateSignature, verifySignature instead of old class methods.
affects: >=1.7.0
gotchaMerchant key is passed as plain string, not as object or dict.
fix
Pass the key directly as a string parameter.
affects: all
Upgrade
Version history
1.7.0latest on PyPI · released Jul 3, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
paytmchecksum — pip install paytmchecksum · libregistry