{"repo":"gray-adeyi/pypaystack2","free":true,"listed":false,"github":"https://github.com/gray-adeyi/pypaystack2","clone":"git clone https://github.com/gray-adeyi/pypaystack2.git","description":"A developer-friendly Paystack API wrapper.","language":"Python","stars":15,"topics":["payments","paystack","paystack-library","paystack-sdk","paystackhq"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"PyPaystack2 PyPaystack2 is an Open Source Python client library for integrating Paystack into your python projects. It aims at being developer friendly and easy to use. Version 3 is here now Features - 1st class support for type annotations. - Synchronous and Asynchronous clients. - Pydantic for data modelling. - Fees Calculation utilities. - Webhook support & utilities ( = v3.1.0). Installation Usage Preview In the REPL session below, we're using PyPaystack2 to create a Customer (user) and a Plan on Paystack and then add the newly created customer as a subscriber to the plan. Note The REPL session below assumes the environmental variable PAYSTACK SECRET KEY=\"YOUR SECRET KEY\" is set. if not, you can alternatively pass it into the PaystackClient on instantiation like so PaystackClient(secret key='YOUR SECRET KEY') otherwise, you will get a MissingSecretKeyException raised prompting you to provide a secret key. It also does not handle likely exceptions that calling client methods like client.customers.create , client.plans.create & client.subscriptions.create may raise like ClientNetworkError for network related issues and ValueError for validation related issues. Webhook PyPaystack2 now supports verifying the authenticity of a webhook payload and a CLI to make working with webhooks locally seamless Verifying a webhook payload Forward webhook events from paystack to your app running locally Note: This requires that you install pypaystack2[webhook] Documentation See Documentatio","default_branch":null,"files":null,"tree":[],"storefront":"/r/gray-adeyi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gray-adeyi/pypaystack2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}