Async Python SDK for the Velvpay payment gateway
Project description
Pyvelv
Async Python SDK for the Velvpay payment gateway.
Installation
pip install pyvelv
# or
poetry add pyvelv
Quick Start
import asyncio
from pyvelv import Velvpay
from pyvelv.models import CreatePaymentLinkRequest
async def main():
async with Velvpay(secret_key="your-secret-key") as client:
# Create a payment link
response = await client.payment_links.create(
CreatePaymentLinkRequest(
amount=1500.00,
currency="NGN",
description="Order #12345",
)
)
print(response.data.url)
# Verify a transaction
txn = await client.transactions.verify(reference="ref_abc123")
print(txn.data.status)
asyncio.run(main())
Authentication
Pyvelv handles authentication automatically. The SDK generates the required api-key header using a legacy OpenSSL EVP_BytesToKey routine (AES-256-CBC) with a random 8-byte salt on every request.
Simply pass your Velvpay secret key when initializing the client:
client = Velvpay(secret_key="sk_live_...")
Resources
| Resource | Methods |
|---|---|
payment_links |
create(), get(), list() |
transactions |
get(), list(), verify() |
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
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 pyvelv-0.1.1.tar.gz.
File metadata
- Download URL: pyvelv-0.1.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.3 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18dfd47d6111107847495c120d692d0032a69b2424cd8e193b05884684d6ad28
|
|
| MD5 |
4d6b2b630106cae64f7160bfd9aadc22
|
|
| BLAKE2b-256 |
91daf5729d7c872563e4ed33ac0c13be9a38012bbec0c43e8ccb07981218fd5a
|
File details
Details for the file pyvelv-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyvelv-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.3 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
095a32ddfba200041ea576c901426e5d4d1365a40cb82f978b3487034b9fbba5
|
|
| MD5 |
78dd03f8ff89ad9c980f54e953fdca06
|
|
| BLAKE2b-256 |
25853c434cdc38728f7d62903cd9a6b268866980dac60767a44d9648c6c88748
|