Python client for interacting with the Payfast API
Project description
payfast-python-client
Asynchronous Python Client for the Payfast API
Uses requests-futures
Installation
Available on PyPi
pip install payfast-client
Usage
from payfast_client import PayfastClient
client = PayfastClient(merchant_id=123, merchant_passphrase="passphrase")
subscription = client.fetch_subscription(token="abc")
print(subscription)
<Future at 0x107d88520 state=finished returned Response>
print(subscription.result())
<Response [200]>
Features
- Signature Generation
- Error Handling (Sometimes errors returned with response_code=200)
- Endpoints
- GET /ping
- Recurring Billing
- GET /subscriptions/:token/fetch
- PUT /subscriptions/:token/pause
- PUT /subscriptions/:token/unpause
- PUT /subscriptions/:token/cancel
- PATCH /subscriptions/:token/update
- POST /subscriptions/:token/adhoc
- Transaction History
- GET /transactions/history
- GET /transactions/history/daily
- GET /transactions/history/weekly
- GET /transactions/history/monthly
- Credit card transaction query
- GET /process/query/:id
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
payfast-client-0.1.3.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for payfast_client-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad4f335a5c33521d577d898d5df0ea1b4739f1a77bd5f4b5364b2081b018c9a6 |
|
MD5 | a035df4f87fc677dcc263950b0cc9489 |
|
BLAKE2b-256 | 80b80f9f257dc0d6658934ca71c84bf93d1e9928ab695f1a83ecb5191dfe4f04 |