Skip to main content

fampay-gateway (Python SDK)

Official zero-dependency Python SDK for SR King FamPay Gateway — a free, zero-fee FamPay UPI payment gateway for Indian Telegram bots, apps, and websites.

  • 0% transaction fee — payments go directly to your own FamPay UPI ID
  • Zero external dependencies — uses Python standard library only
  • Signed HMAC-SHA256 webhook verifier included

Quick Start

from fampay_gateway import FamPayGateway, verify_webhook_signature

gw = FamPayGateway("YOUR_GATEWAY_CODE")

# 1. Create a locked 31-day payment link
pay_url = gw.create_link(
    amount=199,
    order_id="ORD1001",
    redirect_url="https://t.me/YourBot?start=paid_ORD1001",
)
print("Send to customer:", pay_url)

# 2. Confirm payment server-side before delivering
if gw.is_paid("ORD1001", expected_amount=199):
    print("Verified! Deliver product.")

Verify Signed Webhooks

is_valid = verify_webhook_signature(
    raw_body=request.body,
    timestamp=request.headers["X-SRKing-Timestamp"],
    signature=request.headers["X-SRKing-Signature"],
    secret="whsec_your_secret_from_dashboard",
)

Metadata

Release files for fampaygateway 1.0.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 fampaygateway 1.0.0
File Size Uploaded Provenance Actions
fampaygateway-1.0.0.tar.gz 5.2 kB Without provenance Details for fampaygateway-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fampaygateway 1.0.0
File Interpreter ABI Platform Actions
fampaygateway-1.0.0-py3-none-any.whl Python 3 none any Details for fampaygateway-1.0.0-py3-none-any.whl

Total release size: 10.8 kB

Release files / fampaygateway-1.0.0.tar.gz

Download URL fampaygateway-1.0.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f6c913c926067271c72d0f9a1794d14c6b0743553a2abd285d4e46def6a9defd
BLAKE2b-256 checksum
How to use checksums
f78542d6b2375d9d23932fd4f84da61d39c508e86717fe39dec310bd672770f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release files / fampaygateway-1.0.0-py3-none-any.whl

Download URL fampaygateway-1.0.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c208f23524a344a27c08c450dbf85f7ed06bb101e2c143119fe00e864e488c54
BLAKE2b-256 checksum
How to use checksums
87d739e0d2ffbd252bb8c977ed630aa10fea74877ba20eee03c49eed7e9c6615
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Security for fampaygateway 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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