{ "info": { "author": "Confi Yobo", "author_email": "confiyobo@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# paystackpy\n===============================\n\nOverview\n--------\n\nA Paystack ( https://paystack.com/ ) API wrapper with python\n\nDocumentation\n-------------\n\nPlease see https://developers.paystack.co/docs for the most up-to-date documentation for the Paystack API.\n\n\n# Installation\n\npip install paystackpy\n\n# Example\n\n```python\nfrom paystackpy import Transaction, Customer, Plan, Transfer\n```\n\"\"\"\nAll Response objects are a dictionay containing status_code, status, message and data\n\"\"\"\n\n#Instantiate the transaction object to handle transactions.\n#Pass in your authorization key - if not set as environment variable PAYSTACK_AUTHORIZATION_KEY\n```\ntransaction = Transaction(authorization_key=\"sk_mypaystackauthorizationkey\")\nresponse = transaction.charge(\"customer@domain.com\", \"CustomerAUTHcode\", 10000) #Charge a customer in Kobo.\nresponse = transaction.verify(refcode) #Verify a transaction given a reference code \"refcode\".\n```\n\n#Instantiate the customer class to manage customers\n```\ncustomer = Customer(authorization_key=\"sk_mypaystackauthorizationkey\")\nresponse = customer.create(\"customer2@gmail.com\", \"John\", \"Doe\", phone=\"080*********\") #Add new customer\nresponse = customer.getone(1234) #Get customer with id of 1234\nresponse = customer.getall() #Get all customers\n```\n\n#Instantiate the plan class to manage plans\n```\nplan = Plan(authorization_key=\"sk_mypaystackauthorizationkey\")\nresponse = plan.create(\"Test Plan\", 150000, 'Weekly') #Add new plan\nresponse = plan.getone(240) #Get plan with id of 240\nresponse = plan.getall() #Get all plans\n```\n\n#Instantiate the transaction claas for transfer\n```\ntransfer = Transfer(authorization_key=\"sk_mypaystackauthorizationkey\")\nresponse = transfer.create_transfer_recipient(receipt_type=\"nuban\", name=\"Customer\", metadata={}, account_number=\"092********\", bank_code=\"058\", currency=\"NGN\", description=\"SOME TEXT\", authorization_code=\"code\")\n\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/ConfiYobo/paystackpy/archive/0.03.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ConfiYobo/paystackpy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "paystackpy", "package_url": "https://pypi.org/project/paystackpy/", "platform": "", "project_url": "https://pypi.org/project/paystackpy/", "project_urls": { "Download": "https://github.com/ConfiYobo/paystackpy/archive/0.03.tar.gz", "Homepage": "https://github.com/ConfiYobo/paystackpy" }, "release_url": "https://pypi.org/project/paystackpy/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "A Paystack API wrapper with python", "version": "0.0.3" }, "last_serial": 5746767, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "543210fc4219e834352a7f096a48b738", "sha256": "ecf2870647c20434098643299716713195a6fe8dca3dc5d0b0bff9ad2ce2004a" }, "downloads": -1, "filename": "paystackpy-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "543210fc4219e834352a7f096a48b738", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8378, "upload_time": "2019-06-10T14:22:27", "url": "https://files.pythonhosted.org/packages/69/76/e6c524e91979553980ae61f5196057dc797013c7867cf9dace7c5567db4c/paystackpy-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9b2ababfd4a5ee5a17a80dc56c39bf64", "sha256": "36b24d32a009941732c3a7ac33779eb7a1a431b9fff8e9ad66c2221a2a3e13ab" }, "downloads": -1, "filename": "paystackpy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9b2ababfd4a5ee5a17a80dc56c39bf64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4651, "upload_time": "2019-06-10T14:22:29", "url": "https://files.pythonhosted.org/packages/c5/87/5c2d94f0e3b0b3ff5b1b45712766d1d5f89fc81fde87dd1cd541a1f47445/paystackpy-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "19bab23d678c3e1e00a60a2c8edce792", "sha256": "9c046ecce2979def92ca0e29b66d69590cada8933f8b4be3b79b242af1d8298b" }, "downloads": -1, "filename": "paystackpy-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "19bab23d678c3e1e00a60a2c8edce792", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9102, "upload_time": "2019-06-10T14:59:43", "url": "https://files.pythonhosted.org/packages/b8/ca/604e62e19bb838a10df507df2a20ec4b4eecc2032b72176dbdc4f3438e93/paystackpy-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "82cef03196dd3a269e814c42bed8d94d", "sha256": "ec9c6c3650d41a8554398e4d8d974ba15dbe160664b1e4261c9cde4069ad5488" }, "downloads": -1, "filename": "paystackpy-0.0.2.tar.gz", "has_sig": false, "md5_digest": "82cef03196dd3a269e814c42bed8d94d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5451, "upload_time": "2019-06-10T15:01:02", "url": "https://files.pythonhosted.org/packages/60/25/d64ac80f2acc3656c67887670d96a98e336028dfe6d2402a5e167a570a30/paystackpy-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "3dbf4c7b20df4c29af7efb6fc6161683", "sha256": "0d82f245f58ba14e75d32904c85782ffd7ca6563d56ca688658fc54b66efe996" }, "downloads": -1, "filename": "paystackpy-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "3dbf4c7b20df4c29af7efb6fc6161683", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9147, "upload_time": "2019-08-28T23:39:20", "url": "https://files.pythonhosted.org/packages/f8/a5/8a8856db0a09e9056309c40d546b1bd5bd37e9fcf7aa7e755fc2d3e1975f/paystackpy-0.0.3-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3dbf4c7b20df4c29af7efb6fc6161683", "sha256": "0d82f245f58ba14e75d32904c85782ffd7ca6563d56ca688658fc54b66efe996" }, "downloads": -1, "filename": "paystackpy-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "3dbf4c7b20df4c29af7efb6fc6161683", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9147, "upload_time": "2019-08-28T23:39:20", "url": "https://files.pythonhosted.org/packages/f8/a5/8a8856db0a09e9056309c40d546b1bd5bd37e9fcf7aa7e755fc2d3e1975f/paystackpy-0.0.3-py3-none-any.whl" } ] }