Skip to main content

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

pyvelv-0.1.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

pyvelv-0.1.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

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

Hashes for pyvelv-0.1.1.tar.gz
Algorithm Hash digest
SHA256 18dfd47d6111107847495c120d692d0032a69b2424cd8e193b05884684d6ad28
MD5 4d6b2b630106cae64f7160bfd9aadc22
BLAKE2b-256 91daf5729d7c872563e4ed33ac0c13be9a38012bbec0c43e8ccb07981218fd5a

See more details on using hashes here.

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

Hashes for pyvelv-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 095a32ddfba200041ea576c901426e5d4d1365a40cb82f978b3487034b9fbba5
MD5 78dd03f8ff89ad9c980f54e953fdca06
BLAKE2b-256 25853c434cdc38728f7d62903cd9a6b268866980dac60767a44d9648c6c88748

See more details on using hashes here.

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