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 hashes)

Uploaded source

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