{"id":15297447,"url":"https://github.com/seerbit/seerbit-python-api-library","last_synced_at":"2025-04-13T23:16:14.009Z","repository":{"id":37901483,"uuid":"284954315","full_name":"seerbit/seerbit-python-api-library","owner":"seerbit","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-14T16:18:32.000Z","size":2494,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-13T23:16:05.939Z","etag":null,"topics":["cardservice","fintech","payment-gateway","payment-integration","python","python-3","python-library","seerbit-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seerbit.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":"2020-08-04T11:03:29.000Z","updated_at":"2023-07-08T11:17:07.000Z","dependencies_parsed_at":"2022-08-19T21:50:36.228Z","dependency_job_id":null,"html_url":"https://github.com/seerbit/seerbit-python-api-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-python-api-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-python-api-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-python-api-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seerbit%2Fseerbit-python-api-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seerbit","download_url":"https://codeload.github.com/seerbit/seerbit-python-api-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794569,"owners_count":21162615,"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":["cardservice","fintech","payment-gateway","payment-integration","python","python-3","python-library","seerbit-api"],"created_at":"2024-09-30T19:17:39.448Z","updated_at":"2025-04-13T23:16:13.977Z","avatar_url":"https://github.com/seerbit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align=\"center\"\u003e\n \u003cimg width=\"400\" valign=\"top\" src=\"https://assets.seerbitapi.com/images/seerbit_logo_type.png\"/\u003e\n\u003c/div\u003e\n\n\n\u003ch1 align=\"center\"\u003e\n  seerbit-python-v2\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003e\n  A SeerBit API Library for Python (Version 2)\n\u003c/h4\u003e\n\n## Features\n\nThe Library supports all APIs under the following services:\n* Payments via API (mobile money, cards, account, etc.)\n* Recurring Payments\n* Transaction Status\n\n## Getting Started\n\nA full getting started guide for integrating SeerBit can be found at [getting started docs](https://doc.seerbit.com).\n\n## Documentation\n\nThe documentation, installation guide, detailed description of the SeerBit API and all of its features is [available on the documentation website](https://doc.seerbit.com/api/library)\n\n\n## Requirements\n\n* Python 3.9\n* Pip\n\n\n## Installation\n\n### Pip\n\nRun this command on the terminal:\n\n```code\npip install seerbit-python-v2\n```\n\n## Contributing\n\nYou can contribute to this repository so that anyone can benefit from it:\n\n* Improved features\n* Resolved bug fixes and issues\n\n## Examples  \n\nYou can also check the [demos](https://github.com/seerbit/seerbit-python-api-library/tree/master/demos)\n## Using the Library\n\n\u003cstrong\u003e\u003ch4\u003eInitiate Account Option\u003c/h4\u003e\u003c/strong\u003e\nInstantiate a client and set the parameters. \n\n```python\n    from seerbit.client import Client\n    from seerbit.enums import EnvironmentEnum\n    from seerbit.seerbitlib import SeerBit\n    \n    client = Client()\n    client.api_base = SeerBit.LIVE_API_BASE\n    client.environment = EnvironmentEnum.LIVE.value\n    client.private_key = \"private_key\"\n    client.public_key = \"public_key\"\n    client.timeout = 20\n```\n\nTo initiate a transaction request you need to perform authentication operation and acquire a token. \n\n```python\n    from seerbit.service.authentication import Authentication\n\n    auth_service = Authentication(client)\n    auth_service.auth()\n    token = auth_service.get_token()\n```\n\nAfter you have retrieved your token, pass it to the AccountService constructor along with your client object. You can then construct your payload and call the \u003ccode\u003eauthorize()\u003c/code\u003e method of the AccountService class.\n```python\n    from random import randint\n    from seerbit.service.account_service import AccountService\n    \n    random_number = randint(10000000, 99999999)\n    payment_ref = \"SBT_\" + str(random_number)\n    account_payload = {\n        \"publicKey\": client.public_key,\n        \"amount\": \"100.00\",\n        \"fee\": \"10\",\n        \"fullName\": \"John Doe\",\n        \"mobileNumber\": \"08037456590\",\n        \"currency\": \"NGN\",\n        \"country\": \"NG\",\n        \"paymentReference\": payment_ref,\n        \"email\": \"johndoe@gmail.com\",\n        \"productId\": \"Foods\",\n        \"productDescription\": \"Uba Account Transaction \",\n        \"clientAppCode\": \"kpp64\",\n        \"channelType\": \"BANK_ACCOUNT\",\n        \"redirectUrl\": \"https://checkout.seerbit.com\",\n        \"deviceType\": \"Apple Laptop\",\n        \"sourceIP\": \"127.0.0.1:3456\",\n        \"accountName\": \"John S Doe\",\n        \"accountNumber\": \"1234567890\",\n        \"bankCode\": \"033\",\n        \"bvn\": \"12345678901\",\n        \"dateOfBirth\": \"04011984\",\n        \"retry\": \"false\",\n        \"invoiceNumber\": \"1234567891abc123ac\"\n    }\n    account_service = AccountService(client, token)\n    json_response = account_service.authorize(account_payload)\n``` \n\nFind more examples [here](https://github.com/seerbit/seerbit-python-api-library/tree/master/demos).\n\n## Licence\nGNU General Public License. For more information, see the LICENSE file.\n\n## Website\n* https://seerbit.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseerbit%2Fseerbit-python-api-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseerbit%2Fseerbit-python-api-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseerbit%2Fseerbit-python-api-library/lists"}