{"id":19912122,"url":"https://github.com/ichinga-samuel/aiopaystack","last_synced_at":"2025-10-19T06:26:56.241Z","repository":{"id":57412239,"uuid":"458470414","full_name":"Ichinga-Samuel/aiopaystack","owner":"Ichinga-Samuel","description":"Asynchronous Paystack Library for Python","archived":false,"fork":false,"pushed_at":"2023-07-13T21:48:43.000Z","size":103,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T05:57:15.149Z","etag":null,"topics":["asynchronous-programming","asyncio","paystack","paystack-api","paystack-library","paystack-python","python"],"latest_commit_sha":null,"homepage":"","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/Ichinga-Samuel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-12T09:00:20.000Z","updated_at":"2025-01-05T16:58:02.000Z","dependencies_parsed_at":"2023-01-31T03:16:08.189Z","dependency_job_id":null,"html_url":"https://github.com/Ichinga-Samuel/aiopaystack","commit_stats":null,"previous_names":["ichinga-samuel/async-paystackapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ichinga-Samuel%2Faiopaystack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ichinga-Samuel%2Faiopaystack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ichinga-Samuel%2Faiopaystack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ichinga-Samuel%2Faiopaystack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ichinga-Samuel","download_url":"https://codeload.github.com/Ichinga-Samuel/aiopaystack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241341721,"owners_count":19947104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["asynchronous-programming","asyncio","paystack","paystack-api","paystack-library","paystack-python","python"],"created_at":"2024-11-12T21:28:19.401Z","updated_at":"2025-10-19T06:26:51.201Z","avatar_url":"https://github.com/Ichinga-Samuel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aiopaystack\n\n\nAsynchronous Python library for [Paystack](https://paystack.com/)\n\n![GitHub](https://img.shields.io/github/license/ichinga-samuel/aiopaystack)\n![PyPI](https://img.shields.io/pypi/v/aiopaystack)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aiopaystack)\n![GitHub issues](https://img.shields.io/github/issues/ichinga-samuel/aiopaystack)\n## Installation\n```bash\npip install aiopaystack\n```\n\n## Usage\nAdd your paystack secret key as an environment variable as PAY_STACK_SECRET_KEY\n```python\nfrom paystack import Transactions\n\ntrans = Transactions()\n\n# All parameters must be passed in as keywords. For both required and optional arguments.\nres = await trans.initialize(email=\"sam@gmail.com\", amount='5000')\n\n# Passing secret key as an argument\n# This replaces any key set in the environment\nfrom paystack import Paystack\npaystack = Paystack(secret_key=\"paystack_secret_key\")\n\n# to use one session for multiple request use the class as a context manager\nasync with Transactions() as trans:\n    res= await trans.verify(reference=\"ref\")\n    \n# The response type for every request is a typed dict.\nfrom typing import TypedDict, Any\nResponse = TypedDict('Response', {'status_code': int, 'status': bool, 'message': str, 'data': dict | Any})\n\n# Sample response\n{'status': True,\n 'message': 'Authorization URL created',\n 'data': \n     {'authorization_url': 'https://checkout.paystack.com/3521i62zf1i0ljl',\n      'access_code': '3521i62zf1i0ljl', 'reference': '2q16btxglw'\n      },\n 'status_code': 200\n }\n## DOC Reference: \u003chttps://developers.paystack.co/v2.0/reference\u003e\n### Static Use\n```\nDon't forget to get your API key from [Paystack](https://paystack.com/) and assign to the variable `PAYSTACK_SECRET_KEY`\nPlease reference the **docs** folder for usage,\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichinga-samuel%2Faiopaystack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fichinga-samuel%2Faiopaystack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichinga-samuel%2Faiopaystack/lists"}