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,VonPayErrortypes. - 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 bindsuccessUrl,keyMode, andiatfreshness. - Auto-retry — exponential backoff on 429 / 5xx with
Retry-Afterheader support. - Request ID tracing — every response includes
X-Request-Idfor support tickets.
Documentation
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vonpay_checkout-0.2.0.tar.gz.
File metadata
- Download URL: vonpay_checkout-0.2.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f97be96f1b27a3360baf1884f7a26e0e59e005dfa48fa03173ec67b331dae3ae
|
|
| MD5 |
6cf47c3176fcebd9aaa903a436c4bf0f
|
|
| BLAKE2b-256 |
ea0ea98c64584aa5e168978ec24735e3f803858362416f3defabaa159870b2ca
|
Provenance
The following attestation bundles were made for vonpay_checkout-0.2.0.tar.gz:
Publisher:
publish-pypi.yml on Von-Payments/vonpay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vonpay_checkout-0.2.0.tar.gz -
Subject digest:
f97be96f1b27a3360baf1884f7a26e0e59e005dfa48fa03173ec67b331dae3ae - Sigstore transparency entry: 1384247602
- Sigstore integration time:
-
Permalink:
Von-Payments/vonpay@b33d60ea4082033eae5c75fcaabe90232081eb00 -
Branch / Tag:
refs/tags/vonpay-checkout@0.2.0 - Owner: https://github.com/Von-Payments
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b33d60ea4082033eae5c75fcaabe90232081eb00 -
Trigger Event:
push
-
Statement type:
File details
Details for the file vonpay_checkout-0.2.0-py3-none-any.whl.
File metadata
- Download URL: vonpay_checkout-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
480ee3ffff44f74b267428f8434e2da21cdccab71f836fd196a43be6353d05e6
|
|
| MD5 |
a76f4e97214113fb96a570020808a490
|
|
| BLAKE2b-256 |
08ff5efbd33c65382b0e543fa242c07f3782cf4c5f5fb22d4149c9030a6b91aa
|
Provenance
The following attestation bundles were made for vonpay_checkout-0.2.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on Von-Payments/vonpay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vonpay_checkout-0.2.0-py3-none-any.whl -
Subject digest:
480ee3ffff44f74b267428f8434e2da21cdccab71f836fd196a43be6353d05e6 - Sigstore transparency entry: 1384247640
- Sigstore integration time:
-
Permalink:
Von-Payments/vonpay@b33d60ea4082033eae5c75fcaabe90232081eb00 -
Branch / Tag:
refs/tags/vonpay-checkout@0.2.0 - Owner: https://github.com/Von-Payments
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b33d60ea4082033eae5c75fcaabe90232081eb00 -
Trigger Event:
push
-
Statement type: