{ "info": { "author": "Pago 46", "author_email": "admin@46degrees.net", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "# Pago46 Python Package\n\nPython Library for the integration with the cash payment plataform of pago46.\n\n## Description\n\nThis library it was developed for give e-merchants of pago46 a standard, easy and fast integration to integrate his products/services with Pago46 to can offer the option of pay with cash to his clients\n\n\n### Configuration.\n\nto configure the client of Pago46 it's necessary to have a MERCHANT_SECRET and MERCHANT_KEY (those key are provided by Pago46)\nwith those keys we can generate calls to PAGO46 API.\n\nwe must configure the MERCHANT_SECRET, MERCHANT_KEY and PAGO46_API_HOST on enviroment variables.\n\nExample\n```python\nimport os\nos.environ[\"PAGO46_MERCHANT_KEY\"] = \"\"\nos.environ[\"PAGO46_MERCHANT_SECRET\"] = \"\"\nos.environ[\"PAGO46_API_HOST\"] = \"http://sandboxapi.pago46.com\" # for testing or \"https://api.pago46.com\" for production\n```\n\nwith the environment variables set, we can intilialize the client \n\n\n```python\nfrom pago46.client import Pago46\n\nclient = Pago46()\n```\nExample Get all orders \n```python\nresponse = client.get_all_orders()\n```\nExample create a order\n\n```python\nfrom pago46.client import Pago46\n\n\nclient = Pago46()\n\npayload = {\n \"currency\": \"CLP\", # Tipo de moneda \n \"merchant_order_id\": '0001', # id que identifica una transacci\u00f3n.\n \"notify_url\":\"http://merchant.com/app/response\", # La URL en la que pago46 publicara la respuesta al modificarse el estado de la transacci\u00f3n.\n \"price\": 1000,# precio de la orden\n \"return_url\": \"http://final.merchant.com\",# url a la cual el user ser\u00e1 redirigido al terminar el proceso.\n \"timeout\": 60, # duraci\u00f3n en que la transacci\u00f3n estar\u00e1 activa para ser pagada en minutos.\n \"description\": \"description of product.\", # (opcional): descripci\u00f3n opcional del producto/servicio.\n\n}\n\n# create a new order\nresponse = client.create_order(payload)\n```\n\nExample to mark a order as complete.\n\n```python\npayload = {\"order_id\": \"0001\"}\nresponse = client.mark_order_as_complete(payload)\n```\nExample get a order by ID\n\n```python\norder_id = \"0001\"\nresponse = client.get_order_by_id(order_id)\n```\nExample get a order by Notification ID\n\n```python\nnotification_id = \"fe0eac28aa774b539b0e12d0227bf27f\"\nresponse= client.get_order_by_notification_id(notification_id)\n```\nExample get order details by order ID\n\n\n```python\norder_id = \"121d3b2c-b985-4592-b8fc-b5c6d9ce5a13\"\nresponse = client.get_order_details_by_order_id(order_id)\n```\n\n\n### Installation\n\nYou can install Pago46 Package in the usual ways. The simplest way is with pip:\n\n```\npip install Pago46\n```\n\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": "", "keywords": "pago46,chile,payments", "license": "GPLv3", "maintainer": "David Liencura", "maintainer_email": "dliencura@46degrees.net", "name": "pago46", "package_url": "https://pypi.org/project/pago46/", "platform": "", "project_url": "https://pypi.org/project/pago46/", "project_urls": null, "release_url": "https://pypi.org/project/pago46/0.0.2/", "requires_dist": [ "requests (>=2.19.1)" ], "requires_python": "", "summary": "Integraton package of pago46", "version": "0.0.2" }, "last_serial": 4569288, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "bab34f5dd01a042eb84f7799cf69cfaf", "sha256": "1985867dabfec1e752c1931ad109b5a492546d2e8f22c8f695ae6bccc430d9a7" }, "downloads": -1, "filename": "pago46-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bab34f5dd01a042eb84f7799cf69cfaf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5569, "upload_time": "2018-08-14T13:50:52", "url": "https://files.pythonhosted.org/packages/f1/ff/48be9dd5d9a1cd4d2349f66edd224c94c748d51c12a41afc5218ae38929d/pago46-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0d1a2fae272ec10cac348b30c893a3aa", "sha256": "174ab176bdda9c1b84eea01d07571fef2d919541d11b83b0f0b3f64eff17a1aa" }, "downloads": -1, "filename": "pago46-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0d1a2fae272ec10cac348b30c893a3aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4593, "upload_time": "2018-08-14T13:50:53", "url": "https://files.pythonhosted.org/packages/7d/1e/e10ba81a5ce170ce54dce8fb91c1e0230ca4c385fb7d2ec47e42d8600de9/pago46-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "731ee7f5dab84ddd76bac8f1682379a4", "sha256": "da253a3c62bf55ef5b3b6fcbee8e13a0b6d060b5dab46c298c2aace3f46212a5" }, "downloads": -1, "filename": "pago46-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "731ee7f5dab84ddd76bac8f1682379a4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18046, "upload_time": "2018-12-06T20:34:56", "url": "https://files.pythonhosted.org/packages/c7/2d/7b3ac472531ceb072720c65274e5e5eef17d0c6145fcc01c9c17893e1feb/pago46-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e13d8ca7e3a4c9e076557dcec6b842ca", "sha256": "32a82e57873f3109af27bfd2a06670f205f79f0eafd458395d842b3e1e73ceb8" }, "downloads": -1, "filename": "pago46-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e13d8ca7e3a4c9e076557dcec6b842ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4714, "upload_time": "2018-12-06T20:34:58", "url": "https://files.pythonhosted.org/packages/ab/7c/8d37b124e0e5693eaf3c9d851165664eae500e63586b799e03ed40f43436/pago46-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "731ee7f5dab84ddd76bac8f1682379a4", "sha256": "da253a3c62bf55ef5b3b6fcbee8e13a0b6d060b5dab46c298c2aace3f46212a5" }, "downloads": -1, "filename": "pago46-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "731ee7f5dab84ddd76bac8f1682379a4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18046, "upload_time": "2018-12-06T20:34:56", "url": "https://files.pythonhosted.org/packages/c7/2d/7b3ac472531ceb072720c65274e5e5eef17d0c6145fcc01c9c17893e1feb/pago46-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e13d8ca7e3a4c9e076557dcec6b842ca", "sha256": "32a82e57873f3109af27bfd2a06670f205f79f0eafd458395d842b3e1e73ceb8" }, "downloads": -1, "filename": "pago46-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e13d8ca7e3a4c9e076557dcec6b842ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4714, "upload_time": "2018-12-06T20:34:58", "url": "https://files.pythonhosted.org/packages/ab/7c/8d37b124e0e5693eaf3c9d851165664eae500e63586b799e03ed40f43436/pago46-0.0.2.tar.gz" } ] }