Skip to main content

Python client for interacting with the Payfast API

Project description

payfast-python-client

Codacy Badge

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.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

payfast_client-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file payfast-client-0.1.2.tar.gz.

File metadata

  • Download URL: payfast-client-0.1.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.2 Linux/5.4.0-1039-azure

File hashes

Hashes for payfast-client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2ab1bfeae15922a2588fc3ce5e11d45b7b6c5402beb00eb37a2a4e7e4f617eae
MD5 62fb5d83fa80eae84617235db5043a7a
BLAKE2b-256 cb7e38754a62e467f6f1e8d070e418d9a28f0eae0657f7f930751b0ee13efdcc

See more details on using hashes here.

File details

Details for the file payfast_client-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: payfast_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.2 Linux/5.4.0-1039-azure

File hashes

Hashes for payfast_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 697bbbc50a3d806e6fb4cf30f2cdbe5e18489b88ca5efddebdc1c867e6e41dca
MD5 049fce69844b18643a56d5683cae2a48
BLAKE2b-256 70d5b6c3461ec6f778377709803d7ade4b5b0dd022bb5cacd6a287bcf4b6e31b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page