{ "info": { "author": "Cornershop", "author_email": "tech@cornershopapp.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "======================================\nUnofficial TBK Web Services Python SDK\n======================================\n\n.. image:: https://circleci.com/gh/cornershop/python-tbk/tree/master.svg?style=svg\n :target: https://circleci.com/gh/cornershop/python-tbk/tree/master\n\n.. image:: https://badge.fury.io/py/python-tbk.svg\n :target: https://pypi.org/project/python-tbk/\n\nRequirements\n============\n\n* python: ~2.7, ^3.6\n* libxml2 >= 2.9.1\n* libxmlsec1 >= 1.2.14\n\n----------\n\n\ud83c\uddec\ud83c\udde7\n\nInstallation\n============\n\nJust run::\n\n $ pip install python-tbk\n\n\nUsage\n=====\n\nAs simple as call (snakecased) webpay api methods::\n\n >>> from tbk.services import WebpayService\n >>> from tbk.commerce import Commerce\n >>> from tbk import INTEGRACION\n >>> commerce = Commerce(commerce_code, key_data, cert_data, tbk_cert_data, INTEGRACION)\n >>> webpay = WebpayService(commerce)\n >>> transaction = webpay.init_transaction(amount, buy_order, return_url, final_url)\n >>> print(transaction['token'])\n e87df74f7af4dcfdc1d17521b07413ff9a004a7b423dc47ad09f6a8166a73842\n\n\nConventions\n===========\n\nThis library use a snake cased naming convention for webservices and params for a more pythonic implementation. Every camelcased name in the webpay API was transformed to snakecase::\n\n initTransaction(amount, buyOrder, returnURL, finalURL, sessionId)\n\nbecame::\n\n init_transaction(amount, buy_order, return_url, final_url, session_id)\n\n\nDocumentation\n=============\n\nYou can refer to http://www.transbankdevelopers.cl/?m=api for official API documentation. This library documentation is on the way.\n\n\nLoggers\n=======\n\nThere are two levels of loggers::\n\n tbk.services\n tbk.soap\n\nSpecific service logger are defined by class name::\n\n tbk.services.WebpayService\n\n\nBugs?\n=====\n\nIssues are welcome at https://github.com/cornershop/python-tbk/issues\n\n\n\ud83c\uddea\ud83c\uddf8\n\nInstalaci\u00f3n\n===========\n\nEjecuta::\n\n $ pip install python-tbk\n\n\nUso\n===\n\nTan simple como llamar los m\u00e9todos del API de Webpay (pero snakecased)::\n\n >>> from tbk.services import WebpayService\n >>> from tbk.commerce import Commerce\n >>> from tbk import INTEGRACION\n >>> commerce = Commerce(commerce_code, key_data, cert_data, tbk_cert_data, INTEGRACION)\n >>> webpay = WebpayService(commerce)\n >>> transaction = webpay.init_transaction(amount, buy_order, return_url, final_url)\n >>> print(transaction['token'])\n e87df74f7af4dcfdc1d17521b07413ff9a004a7b423dc47ad09f6a8166a73842\n\n\nConvenciones\n============\n\nLa librer\u00eda usa una convenci\u00f3n de nombres snakecased para ser m\u00e1s pythonica. Cada nombre camelcased en el API de Webpay se transform\u00f3 a snakecased::\n\n initTransaction(amount, buyOrder, returnURL, finalURL, sessionId)\n\nse traduce en::\n\n init_transaction(amount, buy_order, return_url, final_url, session_id)\n\n\nDocumentaci\u00f3n\n=============\n\nLa documentaci\u00f3n oficial se encuentra disponible en http://www.transbankdevelopers.cl/?m=api. La documentaci\u00f3n de esta librer\u00eda est\u00e1 en desarrollo.\n\n\nLoggers\n=======\n\nSe encuentran definidos dos niveles de logger::\n\n tbk.services\n tbk.soap\n\nEl logger espec\u00edfico de un servicio est\u00e1 definido por su nombre de clase::\n\n tbk.services.WebpayService\n\n\n\n----------\n\n\nTesting cards / Tarjetas de prueba\n==================================\n\nCredit / Cr\u00e9dito\n\n+----------------+------------------+------------------+\n| Marca | VISA | MASTERCARD |\n+================+==================+==================+\n| No de Tarjeta | 4051885600446623 | 5186059559590568 |\n+----------------+------------------+------------------+\n| A\u00f1o Expiraci\u00f3n | Cualquiera | Cualquiera |\n+----------------+------------------+------------------+\n| CVV | 123 | 123 |\n+----------------+------------------+------------------+\n| Resultado | APROBADO | RECHAZADO |\n+----------------+------------------+------------------+\n\nDebit / D\u00e9bito\n\n+----------+------------------+------------------+\n| | APRUEBA | RECHAZA |\n+==========+==================+==================+\n| TARJETA | 4051885600446620 | 5186059559590560 |\n+----------+------------------+------------------+\n| RUT | 11.111.111-1 | 11.111.111-1 |\n+----------+------------------+------------------+\n| PASSWORD | 123 | 123 |\n+----------+------------------+------------------+\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cornershop/python-tbk", "keywords": "payments,python,transbank,chile", "license": "MIT", "maintainer": "Cornershop", "maintainer_email": "tech@cornershopapp.com", "name": "python-tbk", "package_url": "https://pypi.org/project/python-tbk/", "platform": "", "project_url": "https://pypi.org/project/python-tbk/", "project_urls": { "Homepage": "https://github.com/cornershop/python-tbk", "Repository": "https://github.com/cornershop/python-tbk" }, "release_url": "https://pypi.org/project/python-tbk/0.2.2/", "requires_dist": [ "zeep (>=3.0.0)", "xmlsec (>=0.6.1)", "typing (>=3.6); python_version >= \"2.7\" and python_version < \"2.8\"" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "summary": "Unofficial TBK Web Services Python SDK", "version": "0.2.2" }, "last_serial": 5642133, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "036baa116b103768cfaa1e02e4597a21", "sha256": "edde2bfc8815a4a9c8fb8394411bddfdc16c8b5e5de4cc668157c3bc0470d302" }, "downloads": -1, "filename": "python-tbk-0.2.tar.gz", "has_sig": false, "md5_digest": "036baa116b103768cfaa1e02e4597a21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13194, "upload_time": "2018-09-04T15:04:51", "url": "https://files.pythonhosted.org/packages/67/67/bb876ff9f278532d6813586bb84bd241627bcacca629090dce15c57e2c6b/python-tbk-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "cb909ba18bf5517fe0316291fb9a71b5", "sha256": "a597073c057685da8580b3c4ba6303a1a789808f8c73743f8e16255144e6c932" }, "downloads": -1, "filename": "python-tbk-0.2.1.tar.gz", "has_sig": false, "md5_digest": "cb909ba18bf5517fe0316291fb9a71b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13426, "upload_time": "2018-09-05T19:43:22", "url": "https://files.pythonhosted.org/packages/c8/fd/2dcdb20c205be02ef9143601b8f3ba7099e72ed9e3ab90206b0d87d45ff1/python-tbk-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "62669b07ec706702ff0846d62c08e95d", "sha256": "6054f0fc5f7d3993083ed074f598b710d730328f93c398d330e6643dc70f9966" }, "downloads": -1, "filename": "python_tbk-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "62669b07ec706702ff0846d62c08e95d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "size": 15801, "upload_time": "2019-08-06T22:53:39", "url": "https://files.pythonhosted.org/packages/03/2e/6682ac2d088cdf32cb77ff13e4b045e5671e7b85d80b2bc7ef5de4848132/python_tbk-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a23c18c3f96e623f83baa9fbebc037ff", "sha256": "da236e458696fc00614143bca27529bdf7e538c20d7870c6a9977f0ade4069b5" }, "downloads": -1, "filename": "python-tbk-0.2.2.tar.gz", "has_sig": false, "md5_digest": "a23c18c3f96e623f83baa9fbebc037ff", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "size": 12914, "upload_time": "2019-08-06T22:53:38", "url": "https://files.pythonhosted.org/packages/29/e8/3af96cf808f80cbd395be9dfde94abc2dbf401bdd76a932e5ef1bbc272a5/python-tbk-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "62669b07ec706702ff0846d62c08e95d", "sha256": "6054f0fc5f7d3993083ed074f598b710d730328f93c398d330e6643dc70f9966" }, "downloads": -1, "filename": "python_tbk-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "62669b07ec706702ff0846d62c08e95d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "size": 15801, "upload_time": "2019-08-06T22:53:39", "url": "https://files.pythonhosted.org/packages/03/2e/6682ac2d088cdf32cb77ff13e4b045e5671e7b85d80b2bc7ef5de4848132/python_tbk-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a23c18c3f96e623f83baa9fbebc037ff", "sha256": "da236e458696fc00614143bca27529bdf7e538c20d7870c6a9977f0ade4069b5" }, "downloads": -1, "filename": "python-tbk-0.2.2.tar.gz", "has_sig": false, "md5_digest": "a23c18c3f96e623f83baa9fbebc037ff", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "size": 12914, "upload_time": "2019-08-06T22:53:38", "url": "https://files.pythonhosted.org/packages/29/e8/3af96cf808f80cbd395be9dfde94abc2dbf401bdd76a932e5ef1bbc272a5/python-tbk-0.2.2.tar.gz" } ] }