A Python client for the WaafiPay API
Project description
WaafiPay Python Client
Overview
The WaafiPay Python Client is a simple and intuitive library for integrating with the WaafiPay payment gateway. It allows you to perform various payment operations such as preauthorizing payments, committing transactions, and canceling preauthorizations, all while managing your API requests seamlessly.
Features
- Preauthorize Payments: Easily initiate payment preauthorizations with just a few lines of code.
- Commit Transactions: Securely commit preauthorized payments to finalize transactions.
- Cancel Preauthorizations: Cancel any pending preauthorizations quickly and efficiently.
- Easy to Use: Designed with simplicity in mind, making integration straightforward.
- Secure: Handles sensitive payment information with care.
Installation
You can install the WaafiPay package via pip:
pip install waafipay
Usage
1. Import the Client
First, import the WaafiPayClient class from the package:
from waafipay import WaafiPayClient
2. Initialize the Client
client = WaafiPayClient(
merchant_uid="XXXXXXX", # Your merchant UID
api_user_id="XXXXXX", # Your API user ID
api_key="API-XXXXXXXX" # Your API key
)
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 waafipay-0.0.3.tar.gz.
File metadata
- Download URL: waafipay-0.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bca99bbd84ea8619db67134926ecc126734612a3f23f14caef55cf897900264
|
|
| MD5 |
edd18a9784a121ccb75926a054797a0f
|
|
| BLAKE2b-256 |
a1759663a9039df6856863622f7111de06dcb5c37f6cd89732c0f6adc8f57736
|
File details
Details for the file waafipay-0.0.3-py3-none-any.whl.
File metadata
- Download URL: waafipay-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d337f75e34337d8807ab6f622e1578df380b9ff7ee8fa07092c44b0c5090693
|
|
| MD5 |
4cb3588624cca06f9e5f318f80514a40
|
|
| BLAKE2b-256 |
9cf836cc43f14903cf70d8c34456629789a0a46534957ee08e8844a21c34d306
|