{ "info": { "author": "Soofapay Team", "author_email": "info@soofapay.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Build Tools" ], "description": "python soofa\n============\n\nThis package is aimed at simplifying the process of integrating soofapay\npayment solution to your python systems. You can check our `website`_\nfor more\n\nInstallation\n^^^^^^^^^^^^\n\n.. code:: sh\n\n $ pip install soofa\n\nUsage\n^^^^^\n\n1. Checking for a transaction\n'''''''''''''''''''''''''''''\n\n.. code:: python\n\n from soofa import Soofa, Transaction\n\n soofa = Soofa(\"you_soofa_till_number\", \"your_client_secret_here\")\n exists = soofa.find(\"tranaction_id_here\")\n if exists:\n transaction: Transaction = soofa.get_transaction()\n print(transaction.tid)\n print(transaction.sender)\n print(transaction.gross_amount)\n else:\n print(\"No such transaction\")\n\nThe expected response for transaction check is ``Transaction`` object\nwith various keys and methods\n\nThere is an additional method for getting the entire JSON object.\n\n transaction.json()\n\n.. code:: json\n\n {\n \"status\": \"SUCCESSFUL\",\n \"sender_currency\": \"KES\",\n \"receiver_currency\": \"KES\",\n \"tid\": \"QTMB3\",\n \"reference\": \"T5004\",\n \"receipt_no\": \"NFQ6U45W28\",\n \"timestamp\": 1561499777.715254,\n \"gross_amount\": 5,\n \"net_amount\": 4.8605,\n \"transacted_via\": \"mpesa\",\n \"is_money_in\": true,\n \"sender\": \"+254701234567\",\n \"receiver\": \"Dev Market\"\n }\n\nThe table below describes all the attributes of the transaction object.\n\n+-----------------------------------+-----------------------------------+\n| Key | Description |\n+===================================+===================================+\n| status | The state of the transaction, |\n| | either ``SUCCESSFUL`` or |\n| | ``PENDING`` |\n+-----------------------------------+-----------------------------------+\n| sender_currency | The currency of the person who |\n| | performed the transaction |\n+-----------------------------------+-----------------------------------+\n| receiver_currency | The currency of the business, if |\n| | the transaction was Money in for |\n| | the business |\n+-----------------------------------+-----------------------------------+\n| reference | The transaction reference passed |\n| | when making a transaction |\n+-----------------------------------+-----------------------------------+\n| timestamp | Unix timestamp for the |\n| | transaction |\n+-----------------------------------+-----------------------------------+\n| gross_amount | The amount of the transaction |\n+-----------------------------------+-----------------------------------+\n| net_amount | The amount received after |\n| | deducting soofa |\n+-----------------------------------+-----------------------------------+\n| transacted_via | The service provider which |\n| | facilitated the transaction eg. |\n| | mpesa, visa, airtelmoney, |\n| | mastercard, tkash \u2026 |\n+-----------------------------------+-----------------------------------+\n| is_money_in | A boolean indicating if the money |\n| | was to the business or out of the |\n| | business |\n+-----------------------------------+-----------------------------------+\n| sender | The performer of transaction |\n+-----------------------------------+-----------------------------------+\n| receiver | The receiver of the transaction |\n| | which is the business if the |\n| | transaction was inbound |\n+-----------------------------------+-----------------------------------+\n\n2. Checking your soofa business account balance\n'''''''''''''''''''''''''''''''''''''''''''''''\n\n.. code:: python\n\n from soofa import Soofa\n\n soofa = Soofa(\"you_soofa_till_number\", \"your_client_secret_here\")\n balance = soofa.get_balance()\n print(balance)\n\nThe expected response for checking balance is a JSON with three fields:\n\n.. code:: json\n\n {\n \u201cbalance\u201d: \u201c1587.49\u201d,\n \u201ccurrency\u201d: \u201cKES\u201d,\n \u201ctimestamp\u201d: 1561820831.623298\n }\n\n.. _website: https://www.soofapay.com", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/soofapay/python-soofa/archive/v0.1.11-beta.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/soofapay/python-soofa", "keywords": "soofa,soofapay,pay,python", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "soofa", "package_url": "https://pypi.org/project/soofa/", "platform": "", "project_url": "https://pypi.org/project/soofa/", "project_urls": { "Download": "https://github.com/soofapay/python-soofa/archive/v0.1.11-beta.tar.gz", "Homepage": "https://github.com/soofapay/python-soofa" }, "release_url": "https://pypi.org/project/soofa/0.1.11/", "requires_dist": null, "requires_python": "", "summary": "Python package to simplify integration to soofapay", "version": "0.1.11" }, "last_serial": 5966754, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "db8c56ae97ccb91c0f68270e4de7c60e", "sha256": "8dc0aff01d7040b5911864ff820deea54180a9c0230d3937990129396f4edda4" }, "downloads": -1, "filename": "soofa-0.1.10.tar.gz", "has_sig": false, "md5_digest": "db8c56ae97ccb91c0f68270e4de7c60e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3411, "upload_time": "2019-07-13T01:08:03", "url": "https://files.pythonhosted.org/packages/95/75/32f58960816727cce2bfb14b4e9ed42e3e5ad6cdf0a5281c684243ff5217/soofa-0.1.10.tar.gz" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "fb46f7d577862da3a29f08edf71911b9", "sha256": "dbf27f673784148d8d08cb7ef6ef54f0dcd080b52c96841a0a2c31d8d99dc3a3" }, "downloads": -1, "filename": "soofa-0.1.11.tar.gz", "has_sig": false, "md5_digest": "fb46f7d577862da3a29f08edf71911b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3748, "upload_time": "2019-10-13T08:29:06", "url": "https://files.pythonhosted.org/packages/a0/91/f4a700e6e155f397fab0ea036203c0cfd7206829aa4bc26da8010bbb6ab3/soofa-0.1.11.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "8d85fbf884c1bd729aa629907264e715", "sha256": "656733164244844cc5aef5c8247c8b9ab675d2146de56dbcb2258aee30da07e7" }, "downloads": -1, "filename": "soofa-0.1.3.tar.gz", "has_sig": false, "md5_digest": "8d85fbf884c1bd729aa629907264e715", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3191, "upload_time": "2019-07-12T20:45:01", "url": "https://files.pythonhosted.org/packages/9a/d6/5d190d9bb8a4dcd96eea795c83a981fc7a622cd8ba7edfe10da6f1ad1abc/soofa-0.1.3.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "6a1e32473c8c87c2323880f9a17a6964", "sha256": "3efebddb7f9ad0418317bc19003328a2b6f2d213a35aa5e0a35d6dd0be8977ee" }, "downloads": -1, "filename": "soofa-0.1.5.tar.gz", "has_sig": false, "md5_digest": "6a1e32473c8c87c2323880f9a17a6964", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3374, "upload_time": "2019-07-13T00:32:58", "url": "https://files.pythonhosted.org/packages/3f/e4/024532727c761504b9741537776f0e71e125162a35747d039e5b2679d9db/soofa-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "56195695439756d672b1bb70653b6f68", "sha256": "7469423f7270506a715f347cdec1ab750fba9c0d5a967cf3c81f6b9a8d9ed959" }, "downloads": -1, "filename": "soofa-0.1.6.tar.gz", "has_sig": false, "md5_digest": "56195695439756d672b1bb70653b6f68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3377, "upload_time": "2019-07-13T00:41:00", "url": "https://files.pythonhosted.org/packages/cb/51/687b2ed915051102c74cb2710d4c18b59d4bcdc31e6947f8754c5ea5524f/soofa-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "e564562e0e599c6fe37280013c44196c", "sha256": "c9bc21587f4ebdd9d1ec04c245eaa02b4669a8ffba8cf6fe3e9aae07cddf5747" }, "downloads": -1, "filename": "soofa-0.1.7.tar.gz", "has_sig": false, "md5_digest": "e564562e0e599c6fe37280013c44196c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3407, "upload_time": "2019-07-13T00:45:37", "url": "https://files.pythonhosted.org/packages/23/95/9bf7b3ad1e4651bbb300f46775ece4e54284c37f6ab3e4d53d5988d4b9de/soofa-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "988e1d0567624ddfb62cadd438da11d4", "sha256": "f73008410e38903bbd3139eda18fee9b62783ab1297e6770250cf95ce934e11d" }, "downloads": -1, "filename": "soofa-0.1.8.tar.gz", "has_sig": false, "md5_digest": "988e1d0567624ddfb62cadd438da11d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3405, "upload_time": "2019-07-13T00:51:52", "url": "https://files.pythonhosted.org/packages/e2/70/3b83abff17643d020d8e22dfa3675768af37cd35a902e0d0261017faa71d/soofa-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "2a5c6425ac08fb7fdd7d94c38d6d6976", "sha256": "5fece66ccf7ea670016c342a114882de33325559016387ff57de1662ab1a3003" }, "downloads": -1, "filename": "soofa-0.1.9.tar.gz", "has_sig": false, "md5_digest": "2a5c6425ac08fb7fdd7d94c38d6d6976", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3405, "upload_time": "2019-07-13T00:56:52", "url": "https://files.pythonhosted.org/packages/a0/3d/e836a1a0682ae89ce1e3a2b5657596dfb08ee6ae44bdbc7cb94af7404143/soofa-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fb46f7d577862da3a29f08edf71911b9", "sha256": "dbf27f673784148d8d08cb7ef6ef54f0dcd080b52c96841a0a2c31d8d99dc3a3" }, "downloads": -1, "filename": "soofa-0.1.11.tar.gz", "has_sig": false, "md5_digest": "fb46f7d577862da3a29f08edf71911b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3748, "upload_time": "2019-10-13T08:29:06", "url": "https://files.pythonhosted.org/packages/a0/91/f4a700e6e155f397fab0ea036203c0cfd7206829aa4bc26da8010bbb6ab3/soofa-0.1.11.tar.gz" } ] }