{ "info": { "author": "Franklin Sarmiento", "author_email": "franklinitiel@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2.7" ], "description": "# PFPI (Paguelo Facil Payment Interface)\nEasy python module to do payments through Paguelo Facil payment gateway.\n\n## Requirements\n- Python 2.7.x\n\n## Installing\n1) Install the pfpi module:\n```shell\n$ pip install pfpi\n```\n\n## How to add a new credit card.\n```python\nfrom pfpi.models import CreditCardService\ncommerce_key = 'abcdef'\nproduction_mode = False # Change to True if you want use the production environment\ncc = CreditCardService(\n commerce=commerce_key, firstname='first name', lastname='last name', email='example@domain.com',\n description='payment description', cc_number='4111111111111111', ccv2='123', cc_expiration='2019-12',\n production_mode=production_mode)\nresult = cc.call() # Add new credit card\nprint result # return a JSON object with the result\n```\n\n## How to do Payment.\n```python\nfrom pfpi.models import PaymentService\ncommerce_key = 'abcdef'\nproduction_mode = False # Change to True if you want use the production environment\np = PaymentService(\n commerce=commerce_key, firstname='first name', lastname='last name', email='example@domain.com',\n description='payment description', amount=25.00, cc_number='4111111111111111', ccv2='123',\n cc_expiration='2019-12', production_mode=production_mode)\nresult = p.call() # Do Payment\nprint result # return a JSON object with the result\n```\n\n## How to do Payment using Token given from credit card\n```python\nfrom pfpi.models import TokenPaymentService, CreditCardService\ncommerce_key = 'abcdef'\nproduction_mode = False # Change to True if you want use the production environment\ncc = CreditCardService(\n commerce=commerce_key, firstname='first name', lastname='last name', email='example@domain.com',\n description='payment description', cc_number='4111111111111111', ccv2='123', cc_expiration='2019-12',\n production_mode=production_mode)\nresult = cc.call() # get the credit card token\ntoken = result['token']\np = TokenPaymentService(\n commerce=commerce_key, firstname='first name', lastname='last name', email='example@domain.com',\n description='payment description', amount=25.00, token=token, production_mode=production_mode)\nresult = p.call() # Do Payment\nprint result # return a JSON object with the result\n```\n\n## Uninstall pfpi\n```shell\n$ pip uninstall pfpi\n```\n\n## Additional Info\nThis module is based on the follow documentation [link](https://pfserver.net/plugins/api-transacciones/)\n\n## Releases notes:\n\n- 1.0.0: Services added to add credit cards and do payments.\n- 1.0.1: Applying Validations before to call api services.", "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/franklintiel/pfig/wiki", "keywords": "payments gateway paguelo-facil paguelo facil pfig", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pfpi", "package_url": "https://pypi.org/project/pfpi/", "platform": "", "project_url": "https://pypi.org/project/pfpi/", "project_urls": { "Documentation": "https://github.com/franklintiel/pfig", "Homepage": "https://github.com/franklintiel/pfig/wiki", "Source": "https://github.com/franklintiel/pfig", "Tracker": "https://github.com/franklintiel/pfig/issues" }, "release_url": "https://pypi.org/project/pfpi/1.0.1/", "requires_dist": null, "requires_python": ">=2.*", "summary": "Interface to do payments through Paguelo Facil gateway", "version": "1.0.1" }, "last_serial": 4661215, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d7ab4eb7cb78c4176b72cf1deab519de", "sha256": "b9b0ca82534db968fd4ec23102f86bb7e6de5e0c8deed9ba438aa96687a859e3" }, "downloads": -1, "filename": "pfpi-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d7ab4eb7cb78c4176b72cf1deab519de", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.*", "size": 5314, "upload_time": "2019-01-04T17:50:47", "url": "https://files.pythonhosted.org/packages/46/1f/84e912a5c186a35c65d34b7083deb754dd1f46423a1d1ecb23e1b0c09619/pfpi-1.0.0.tar.gz" } ], "1.0.0b0": [ { "comment_text": "", "digests": { "md5": "9d98eb739af9c6d3d14a3fbabe9b13c8", "sha256": "c4200071c4afae12dd1e81615cac8d682fabe5ff3e18a5e527708677123f45ae" }, "downloads": -1, "filename": "pfpi-1.0.0b0.tar.gz", "has_sig": false, "md5_digest": "9d98eb739af9c6d3d14a3fbabe9b13c8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.*", "size": 5341, "upload_time": "2019-01-04T17:34:43", "url": "https://files.pythonhosted.org/packages/cf/75/3068dca794c67e5d7378b49947dbd9cb43c016ce105287961d6aa46532ab/pfpi-1.0.0b0.tar.gz" } ], "1.0.0b1": [ { "comment_text": "", "digests": { "md5": "3148e91f3787b5c1743afaafd4612ca1", "sha256": "e3fb8fb91019de98546d28c19090b2feb4fc80b79b04b3aa64f6e81f992a6095" }, "downloads": -1, "filename": "pfpi-1.0.0b1.tar.gz", "has_sig": false, "md5_digest": "3148e91f3787b5c1743afaafd4612ca1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.*", "size": 5338, "upload_time": "2019-01-04T17:39:06", "url": "https://files.pythonhosted.org/packages/f4/74/5c133386b5ef7bca727f4db924999f84bb1d83ea8eef53f5a0ee214c7849/pfpi-1.0.0b1.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "6a609dfa857c2ca62d3d84346cf95f4d", "sha256": "4256de10cf66907a9049b31c33c03b019df2f585f3091519132623c8e02ca5ab" }, "downloads": -1, "filename": "pfpi-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6a609dfa857c2ca62d3d84346cf95f4d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.*", "size": 5363, "upload_time": "2019-01-04T18:00:23", "url": "https://files.pythonhosted.org/packages/80/5e/3286d8931961d1de24ca779ea20c61096871bab41bfd7815bc4c0b87d399/pfpi-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6a609dfa857c2ca62d3d84346cf95f4d", "sha256": "4256de10cf66907a9049b31c33c03b019df2f585f3091519132623c8e02ca5ab" }, "downloads": -1, "filename": "pfpi-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6a609dfa857c2ca62d3d84346cf95f4d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.*", "size": 5363, "upload_time": "2019-01-04T18:00:23", "url": "https://files.pythonhosted.org/packages/80/5e/3286d8931961d1de24ca779ea20c61096871bab41bfd7815bc4c0b87d399/pfpi-1.0.1.tar.gz" } ] }