{ "info": { "author": "Abimbola Adegun", "author_email": "abimbola.adegun@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "# paystack-lib-python\nThis library provides a Python implementation of the Paystack API.\n\n## Installation\n```\npip3 install --upgrade paystacklib\n```\n\n## Requirements\nPython 3.5+\n\n## Usage\nThe Paystack secret key should be defined in the Environment as `PAYSTACK_SK` or assigned to `paystacklib.secret_key`\n\n```\n>>> import paystacklib\n>>> paystacklib.secret_key = 'sk_your_paystack_secret_key' \n>>> transaction = paystacklib.Transaction.initialize(500000, 'customer@customer.com')\n>>> transaction\n{'status': True, 'message': 'Authorization URL created', \n 'data': {'authorization_url': 'https://checkout.paystack.com/6rklpsq157c8bef', \n 'access_code': '6rklpsq157c8bef', 'reference': 'i1wdh5b2r3'}}\n>>> transaction.status\nTrue\n>>> transaction.message\n'Authorization URL created'\n>>> transaction.data.authorization_url\n'https://checkout.paystack.com/6rklpsq157c8bef'\n>>> transaction.data.access_code\n'6rklpsq157c8bef'\n>>> transaction.data.reference\n'i1wdh5b2r3'\n>>> transaction['status'] #you can also access values this way\nTrue\n>>> transaction.whatever #accessing non-existent element will return a 'False' value\n{}\n```\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/abimbola/paystack-lib-python", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "paystacklib", "package_url": "https://pypi.org/project/paystacklib/", "platform": "", "project_url": "https://pypi.org/project/paystacklib/", "project_urls": { "Homepage": "https://github.com/abimbola/paystack-lib-python" }, "release_url": "https://pypi.org/project/paystacklib/0.1.0/", "requires_dist": [ "requests", "dotmap (>=1.3.8)" ], "requires_python": "", "summary": "A Python implementation of the Paystack API", "version": "0.1.0" }, "last_serial": 5690100, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "45c1fe89d60d2f788fd9256fa8f9a575", "sha256": "380fe3ab998849923752d04a9f5aafabfab1b2864c4b8eeb73ad90c00cd5cce3" }, "downloads": -1, "filename": "paystacklib-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "45c1fe89d60d2f788fd9256fa8f9a575", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16347, "upload_time": "2019-08-16T23:58:01", "url": "https://files.pythonhosted.org/packages/ff/12/1ff3fd8e904beaeb447ec43078aad56bf66beddd1d2f1768be9973e923c7/paystacklib-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e3e2c64b6e414181a551e130a0d4ccd6", "sha256": "36ea6f6006ef814309ca4638899274ea77b3bc6469dbbbd5a57f53c7295903f4" }, "downloads": -1, "filename": "paystacklib-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e3e2c64b6e414181a551e130a0d4ccd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7123, "upload_time": "2019-08-16T23:58:04", "url": "https://files.pythonhosted.org/packages/7b/7e/0635a1936e751a54ab6014b13eff4ef5673feae43a4f9e17a9af9eb8264f/paystacklib-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "45c1fe89d60d2f788fd9256fa8f9a575", "sha256": "380fe3ab998849923752d04a9f5aafabfab1b2864c4b8eeb73ad90c00cd5cce3" }, "downloads": -1, "filename": "paystacklib-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "45c1fe89d60d2f788fd9256fa8f9a575", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16347, "upload_time": "2019-08-16T23:58:01", "url": "https://files.pythonhosted.org/packages/ff/12/1ff3fd8e904beaeb447ec43078aad56bf66beddd1d2f1768be9973e923c7/paystacklib-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e3e2c64b6e414181a551e130a0d4ccd6", "sha256": "36ea6f6006ef814309ca4638899274ea77b3bc6469dbbbd5a57f53c7295903f4" }, "downloads": -1, "filename": "paystacklib-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e3e2c64b6e414181a551e130a0d4ccd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7123, "upload_time": "2019-08-16T23:58:04", "url": "https://files.pythonhosted.org/packages/7b/7e/0635a1936e751a54ab6014b13eff4ef5673feae43a4f9e17a9af9eb8264f/paystacklib-0.1.0.tar.gz" } ] }