Skip to main content

For completing, initializing and verifying paystack transactions

Project description

# paystack-py For completing, initializing and verifying paystack transactions

simply import the Paystack class from the package and use it to initialize and verify transactions.

from paystack_py import Paystack

ps = Paystack(“<YOUR_API_KEY>”)

# To initiate a new Direct Payment

url = ps.initialize(‘test@test.com’, 50000, ‘https://callback.com/url’)

# just redirect to the URL returned and in your callback view do

reference = request.GET.get(“reference”) ) # reference is a GET parameter from the request

status = ps.verify(reference)

if status:

# give value to customer pass

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

paystack-py-1.0.4.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file paystack-py-1.0.4.tar.gz.

File metadata

  • Download URL: paystack-py-1.0.4.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for paystack-py-1.0.4.tar.gz
Algorithm Hash digest
SHA256 16b236390a6f324fa91ce8d737160c79b7b7d05913b1ec899684e5fcad81e7e9
MD5 b6ac41f882575816bfea9bb0147eebe4
BLAKE2b-256 4db1a8702c60fd18a59b2a9060a6b11199eb28f76d968df8718adb2cd8204cdb

See more details on using hashes here.

Supported by

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