{ "info": { "author": "Auston Bunsen, Igor Guerrero", "author_email": "auston.bunsen@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "Intended Audience :: Financial and Insurance Industry", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Programming Language :: Python :: 2.6", "Topic :: Office/Business :: Financial" ], "description": "Paython\n=========\n\nTrying to make it easy to accept payments in Python. So far, we're Paython.\n\nCurrently - you can just import the gateway needed from gateways & auth/settle/capture (sale)/void/credit once you instantiate with the proper credentials.\n\nSupported Gateways\n==================\n\n* Stripe\n* Authorize.net\n* Innovative Gateway Solutions (Intuit)\n* First Data Global Gateway (formerly Linkpoint?)\n* PlugnPay\n* Samurai\n\nUsage\n===========================\nIt's super simple to start:\n\nImporting what you need\n\n```py\n from paython import CreditCard, AuthorizeNet\n```\n\nSetting up a credit card\n\n```py\n credit_card = CreditCard(\n number = '4111111111111111',\n exp_mo = '02',\n exp_yr = '2012',\n first_name = 'John',\n last_name = 'Doe',\n cvv = '911',\n strict = False\n )\n```\n\nChecking to see if it's valid\n\n```py\n if not credit_card.is_valid(): return 'houston, we have a problem' # checks card number + expiration date\n```\n\nSetting up customer data to charge, not all fields are required.\n\n```py\n customer_data = dict(\n address='123 Main St', \n address2='Apt 1', \n city='Pleasantville', \n state='IA', \n zipcode='54321', \n country='US', \n phone='654-369-9589', \n email='john@localwoodshop.com', \n ip='127.0.0.1')\n```\n\nTrying to authorize against gateway, options include debug output or test credentials\n\n```py\n api = AuthorizeNet(username='test', password='testpassword', debug=True, test=True)\n gateway_response = api.auth(amount='0.05', credit_card=credit_card, billing_info=customer_data, shipping_info=None)\n```\n\nKeep in mind, if you authorize, you need to settle \n\n```py\n api = AuthorizeNet(username='test', password='testpassword', debug=True, test=True)\n gateway_response = api.settle(amount='0.05', trans_id='2156729380')\n```\n\nOR, you can capture instead\n\n```py\n api = AuthorizeNet(username='test', password='testpassword', debug=True, test=True)\n gateway_response = api.capture(amount='0.05', credit_card=credit_card, billing_info=customer_data, shipping_info=None)\n```\n\n\nThis is the standard paython response.\n\n```py\n gateway_response = {\n 'response_text': 'This transaction has been approved.',\n 'cvv_response': 'P',\n 'response_code': '1',\n 'trans_type': 'auth_only',\n 'amount': '0.05',\n 'avs_response': 'Y',\n 'response_reason_code': '1',\n 'trans_id': '2156729380',\n 'alt_trans_id': '',\n 'auth_code': 'IL2UW7',\n 'approved': True,\n 'response_time': '0.55'\n }\n```\n\nInstall Requirements\n===========================\n\nYou need pip::\n\n pip install -r requirements.txt\n\nRun Tests\n=========\n\nJust run::\n\n nosetests\n\nOr with stats::\n\n nosetests --quiet --with-coverage --cover-package paython\n\nWhen initializing a gateway, debug will output request params, xml & response text or xml. test will use the test gateway endpoint, if there is one & will raise an error otherwise (NoTestEndpointError).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/abunsen/Paython", "keywords": "payments gateways creditcards processing", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "paython", "package_url": "https://pypi.org/project/paython/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/paython/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/abunsen/Paython" }, "release_url": "https://pypi.org/project/paython/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Trying to make it easy to accept payments in Python.", "version": "0.0.3" }, "last_serial": 796079, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "90042bbb92be85be94bedc9f56ef2bfc", "sha256": "017cbb272fedb56341a02d7a56b9e61db94b69cd178cb7f398b0ca341c3a4c63" }, "downloads": -1, "filename": "paython-0.0.3.tar.gz", "has_sig": false, "md5_digest": "90042bbb92be85be94bedc9f56ef2bfc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23791, "upload_time": "2012-09-24T09:25:09", "url": "https://files.pythonhosted.org/packages/4a/e6/c7f2517cf71149f639ae5d72fb184fb333a5d1360af68089b0748d116653/paython-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "90042bbb92be85be94bedc9f56ef2bfc", "sha256": "017cbb272fedb56341a02d7a56b9e61db94b69cd178cb7f398b0ca341c3a4c63" }, "downloads": -1, "filename": "paython-0.0.3.tar.gz", "has_sig": false, "md5_digest": "90042bbb92be85be94bedc9f56ef2bfc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23791, "upload_time": "2012-09-24T09:25:09", "url": "https://files.pythonhosted.org/packages/4a/e6/c7f2517cf71149f639ae5d72fb184fb333a5d1360af68089b0748d116653/paython-0.0.3.tar.gz" } ] }