{ "info": { "author": "Mark Skelton", "author_email": "mdskelton99@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# PayMouse\n\nPython payment processor that supports multiple configurable payment gateways.\n\nCurrently supported gateways are:\n\n- Stripe\n\n## Installation\n\nInstall PayMouse using `pip`\n\n```bash\npip install paymouse\n```\n\n## Usage\n\n### Setup\n\nThe code below is an example of setting up PayMouse with the Stripe gateway.\n\nThe setup step only needs to be completed once unless the PayMouse options need to be updated. To update the options, simply run `paymouse.setup` again with new or updated options.\n\n```py\nimport paymouse\n\npaymouse.setup({\n 'gateway': 'Stripe',\n 'api_key': 'sk_test_LTAhe6WM7my2MTNT8cRRHtXh',\n})\n```\n\n### PayMouse classes\n\nThree classes are used when executing PayMouse methods. These classes are `Money`, `Account`, and `Card`.\n\nBelow shows samples of using these classes\n\n```py\n# Create Money object\nmoney = paymouse.Money(10, 'USD')\n# Create Money object using default currency (USD)\nmoney = paymouse.Money(10)\n\n# Create Account object\naccount = paymouse.Account('John', 'Doe', '123 Main St', 'Anytown', 'Wisconsin', 12345, 'USA')\n# Create Account object using only first and last name\naccount = paymouse.Account('John', 'Doe')\n# Create Account object using keyword args\naccount = paymouse.Account('John', 'Doe', country='USA')\n\n# Create Card object\ncard = paymouse.Card(4111111111111111, 12, 2020, 123)\n# Create Card object without CVC\ncard = paymouse.Card(4111111111111111, 12, 2020)\n```\n\n### Perform a transaction\n\nThe following transactions types are currently supported:\n\n- charge\n- authorize\n- void\n- refund\n\nAn example of performing a charge is shown below:\n\n```py\nmoney = Money(1)\ntoken = 'tok_visa'\n\n# Run the transaction\nresult = paymouse.charge(money, token)\n\nprint('Charge Id:', result['id'])\n```\n\n### Errors\n\nIf the transaction fails, it will return a dictionary with the following keys:\n\n- `error` - The PayMouse normalized error code\n- `message` - The PayMouse normalized error message\n- `gateway_error` - The gateway error code\n- `gateway_message` - The gateway error message\n- `gateway_response` - The full gateway response\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/markypython/paymouse", "keywords": "payments", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "paymouse", "package_url": "https://pypi.org/project/paymouse/", "platform": "", "project_url": "https://pypi.org/project/paymouse/", "project_urls": { "Homepage": "https://github.com/markypython/paymouse" }, "release_url": "https://pypi.org/project/paymouse/0.1/", "requires_dist": [ "stripe", "authorizenet" ], "requires_python": "", "summary": "Python multiple payment gateway", "version": "0.1" }, "last_serial": 3963356, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b42584a4304387e0c44a7777e639eb4d", "sha256": "2aa702cb289dd5e16dc5c1a8fafeb3e6dae83127d2d49481e9474ad356df5598" }, "downloads": -1, "filename": "paymouse-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b42584a4304387e0c44a7777e639eb4d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2576, "upload_time": "2018-06-15T02:32:04", "url": "https://files.pythonhosted.org/packages/64/24/a9050859ab8ab9af324f473333e40d58df9d684f4c4563712d80eebd77b0/paymouse-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ae08f1aa2e7a5e786eeff683725c648", "sha256": "4ca53902958e181577760e94e74dee67f38b7f88e19b46a2b85b70f30a0b6698" }, "downloads": -1, "filename": "paymouse-0.1.tar.gz", "has_sig": false, "md5_digest": "2ae08f1aa2e7a5e786eeff683725c648", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2544, "upload_time": "2018-06-15T02:32:05", "url": "https://files.pythonhosted.org/packages/44/1c/75ca90d61f31c0717cc2bba00916e6c60314064fb7f0ff3dafab8ebd2560/paymouse-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b42584a4304387e0c44a7777e639eb4d", "sha256": "2aa702cb289dd5e16dc5c1a8fafeb3e6dae83127d2d49481e9474ad356df5598" }, "downloads": -1, "filename": "paymouse-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b42584a4304387e0c44a7777e639eb4d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2576, "upload_time": "2018-06-15T02:32:04", "url": "https://files.pythonhosted.org/packages/64/24/a9050859ab8ab9af324f473333e40d58df9d684f4c4563712d80eebd77b0/paymouse-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ae08f1aa2e7a5e786eeff683725c648", "sha256": "4ca53902958e181577760e94e74dee67f38b7f88e19b46a2b85b70f30a0b6698" }, "downloads": -1, "filename": "paymouse-0.1.tar.gz", "has_sig": false, "md5_digest": "2ae08f1aa2e7a5e786eeff683725c648", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2544, "upload_time": "2018-06-15T02:32:05", "url": "https://files.pythonhosted.org/packages/44/1c/75ca90d61f31c0717cc2bba00916e6c60314064fb7f0ff3dafab8ebd2560/paymouse-0.1.tar.gz" } ] }