Skip to main content

Von Payments Checkout SDK for Python

Project description

vonpay-checkout

Python SDK for the Von Payments Checkout API. Create hosted checkout sessions, verify webhook signatures, and validate signed return redirects.

Install

pip install vonpay-checkout

Requires: Python 3.9+, httpx 0.27+

Quick start

from vonpay.checkout import VonPayCheckout, VonPayError

client = VonPayCheckout("vp_sk_test_...")

session = client.sessions.create(
    amount=1499,
    currency="USD",
    country="US",
    success_url="https://example.com/order/123/confirm",
)

print(session.checkout_url)
# https://checkout.vonpay.com/checkout?session=vp_cs_test_...

Features

  • Typed session / webhook / error objects — full CheckoutSession, SessionStatus, WebhookEvent, VonPayError types.
  • Webhook verification — HMAC-SHA256 with ±5 minute timestamp replay protection.
  • Signed return URL verification (v1 + v2)verify_return_signature() supports both legacy v1 signatures and v2 signatures that bind successUrl, keyMode, and iat freshness.
  • Auto-retry — exponential backoff on 429 / 5xx with Retry-After header support.
  • Request ID tracing — every response includes X-Request-Id for support tickets.

Documentation

License

MIT

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

vonpay_checkout-0.4.0.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vonpay_checkout-0.4.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file vonpay_checkout-0.4.0.tar.gz.

File metadata

  • Download URL: vonpay_checkout-0.4.0.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vonpay_checkout-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0a074d874f1e3e6d9793543c1bbd4a7b73e3822c43088607109489ea982bc64d
MD5 93f5a5154977993a8575cdd1dfc18abf
BLAKE2b-256 cc144e4a3c15b98846b1ffa17dbb7ac56c8fddb547b07b0929649b85d53344f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for vonpay_checkout-0.4.0.tar.gz:

Publisher: publish-pypi.yml on Von-Payments/vonpay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vonpay_checkout-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: vonpay_checkout-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vonpay_checkout-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 264576a0cf15f88292dca07220c5d99d6a515568bf8b2d0fc40f1ebb70d732a8
MD5 d6156fb0843185f097b4188d35b05c78
BLAKE2b-256 f64b61186f20385339fd63a5882aa765b6b326a96dfd0fc036d8738a80c6018f

See more details on using hashes here.

Provenance

The following attestation bundles were made for vonpay_checkout-0.4.0-py3-none-any.whl:

Publisher: publish-pypi.yml on Von-Payments/vonpay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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