{"id":34051894,"url":"https://github.com/emekadefirst/pypstk","last_synced_at":"2026-03-10T18:03:56.337Z","repository":{"id":224916388,"uuid":"763374942","full_name":"emekadefirst/PyPstk","owner":"emekadefirst","description":"The essence of this repo is to help python developer integrate paystack into their python code(especially APIs)  seamlessly. Originally Paystack only provide samples for PHP and Node Js  which is kinda is anot appealing to python devlopers.","archived":false,"fork":false,"pushed_at":"2024-05-26T15:15:45.000Z","size":51,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T09:29:31.870Z","etag":null,"topics":["payment","paystack","python-apps","subscription","verify"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pypstk/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emekadefirst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-26T07:11:18.000Z","updated_at":"2024-05-27T07:57:41.000Z","dependencies_parsed_at":"2024-02-28T11:49:36.664Z","dependency_job_id":"d08ada2c-5627-4081-a8d3-e758c4860e0d","html_url":"https://github.com/emekadefirst/PyPstk","commit_stats":null,"previous_names":["emekadefirst/python-paystack","emekadefirst/paystack-python-2-sdk"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/emekadefirst/PyPstk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emekadefirst%2FPyPstk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emekadefirst%2FPyPstk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emekadefirst%2FPyPstk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emekadefirst%2FPyPstk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emekadefirst","download_url":"https://codeload.github.com/emekadefirst/PyPstk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emekadefirst%2FPyPstk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30346485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["payment","paystack","python-apps","subscription","verify"],"created_at":"2025-12-14T01:43:51.173Z","updated_at":"2026-03-10T18:03:56.328Z","avatar_url":"https://github.com/emekadefirst.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pystack\n\nThis Python package provides a set of classes to interact with the Paystack API for handling transactions, customers, subscriptions, and webhooks.\n\n## Installation\n\nTo use this package, you need to have Python installed. You can install the package using pip:\n\n```\npip install pypstk\n```\n\n## Usage\n\n### 1. Payment\n\n```python\nfrom pypstk.payment import Payment\n\nemail = \"customer@email.com\"\namount = \"20000\"\nsecret_key = \"your secret_key from api\"\n\nnew_payment = Payment(email, amount, secret_key)\ntransaction_data = new_payment.initialize_transaction()\nprint(transaction_data)\n\n# Sample output:\n# {'references': '8pr6trcjj5', 'url': 'https://checkout.paystack.com/j62hay03a7dj6iu'}\n\n```\n\n\n### 3. Subscription\n\n```python\nfrom pypstk.subscription import Subscription\n\n# Initialize subscription payment\nname = \"Monthly Retainer\"\ninterval = \"monthly\"\namount = 500000\nsecret_key = \"sk_test_daf386e7071c4613e54e4b71f43926409abd811e\"\n\npay_subscription = Subscription(name, interval, amount, secret_key)\npay_subscription.initialize_payment()\npay_subscription.payment_status()\n```\n\n### 4. Payment Status\n\n```python\nfrom pypstk.status import Verify\n\n# Check webhook status\nreference = \"YOUR_REFERENCE\"\nsecret_key = \"YOUR_SECRET_KEY\"\n\nhook = Hook(reference, secret_key)\nstatus = hook.status()\nprint(status)\n```\n\n## Contributors\n\n- [Emekadefirst](https://github.com/emekadefirst)\n- I used [Olabode](https://github.com/Olabode-cmd) template to test this in an api\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femekadefirst%2Fpypstk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femekadefirst%2Fpypstk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femekadefirst%2Fpypstk/lists"}