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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for paystack-py-1.0.2.tar.gz
Algorithm Hash digest
SHA256 17a965fea79445dd1cbd124fe3cc2c154fccc38b00c855df71654ef952e1e03d
MD5 dd99ef530556c1e6d850756bcd233a19
BLAKE2b-256 32e77296cdd3462d9cb620ecae39718180206d810ef229030d3b50e024b5dec1

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