{ "info": { "author": "Pedro Buron", "author_email": "pedroburonv@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "tbk - Transbank's Webpay protocol\n=================================\n\n**Attention: Beta not ready for production**\n\nPython implementation of Transbank's Webpay protocol.\n\n\n|Latest Version| |Development Status| |Build Status| |Coverage Status| |Code Health| |Downloads|\n\n\n.. |Latest Version| image:: https://pypip.in/version/tbk/badge.svg?\n :target: https://pypi.python.org/pypi/tbk/\n :alt: Latest Version\n.. |Development Status| image:: https://pypip.in/status/tbk/badge.svg?\n :target: https://pypi.python.org/pypi/tbk/\n :alt: Development Status\n.. |Build Status| image:: https://travis-ci.org/pedroburon/tbk.svg?\n :target: https://travis-ci.org/pedroburon/tbk\n :alt: Build Status\n.. |Coverage Status| image:: https://img.shields.io/coveralls/pedroburon/tbk.svg?\n :target: https://coveralls.io/r/pedroburon/tbk\n :alt: Coverage Status\n.. |Code Health| image:: https://landscape.io/github/pedroburon/tbk/master/landscape.svg?\n :target: https://landscape.io/github/pedroburon/tbk/master\n :alt: Code Health\n.. |Downloads| image:: https://pypip.in/download/tbk/badge.svg?period=month\n :target: https://pypi.python.org/pypi/tbk/\n :alt: Downloads\n\nInstallation\n------------\n\n::\n\n pip install tbk\n\n\nUsage\n-----\n\nSet environment variable for Commerce and initialize.\n\n::\n\n os.environ['TBK_COMMERCE_ID'] = \"597026007976\"\n os.environ['TBK_COMMERCE_KEY'] = \"-----BEGIN RSA PRIVATE KEY-----\\nMIIEowIBAAKCAQEAn3HzPC1ZBzCO3edUCf/XJiwj3bzJpjjTi/zBO9O+DDzZCaMp...\"\"\n\n from tbk.webpay.commerce import Commerce\n\n commerce = Commerce.create_commerce()\n # for development purposes you can use\n # commerce = Commerce(testing=True)\n\nIf you want to set the official webpay log (for certification issues):\n\n::\n\n from tbk.webpay.logging import configure_logger\n from tbk.webpay.logging.official import WebpayOfficialHandler\n\n configure_logger(WebpayOfficialHandler(LOG_BASE_PATH))\n\nCreate a new payment and redirect user.\n\n::\n\n from tbk.webpay.payment import Payment\n\n payment = Payment(\n request_ip='123.123.123.123',\n commerce=commerce,\n success_url='http://localhost:8080/webpay/success/',\n confirmation_url='http://127.0.0.1:8080/webpay/confirmation/',\n failure_url='http://localhost:8080/webpay/failure/',\n session_id='SOME_SESSION_VALUE',\n amount=123456,\n order_id=1,\n )\n payment.redirect_url\n\n\nThen to confirm payment, use an endpoint with:\n\n::\n\n from tbk.webpay.confirmation import Confirmation\n\n def confirmation(request):\n conf = Confirmation(\n commerce=commerce,\n request_ip=request.ip_address,\n data=request.POST\n )\n\n # validate_confirmation validate if order_id and amount are valid.\n if conf.is_success() and validate_confirmation(conf) and not conf.is_timeout():\n return HttpResponse(commerce.acknowledge)\n\n return HttpResponse(commerce.reject)\n\n\nAbout webpay communication protocol: http://sagmor.com/rants/technical/webpay-communication-protocol/\n\n..", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/pedroburon/tbk", "keywords": "webpay,chile,payments,transbank", "license": "GPLv2", "maintainer": null, "maintainer_email": null, "name": "tbk", "package_url": "https://pypi.org/project/tbk/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tbk/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/pedroburon/tbk" }, "release_url": "https://pypi.org/project/tbk/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Python implementation of Transbank's Webpay protocol.", "version": "0.2.0" }, "last_serial": 1321263, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "08947323073dc730cbb540e4f6814f8c", "sha256": "6729249d01a02ede832da75fc11f348b310602cf6e097fa24a8881f4618855f5" }, "downloads": -1, "filename": "tbk-0.0.1.tar.gz", "has_sig": false, "md5_digest": "08947323073dc730cbb540e4f6814f8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13318, "upload_time": "2014-09-16T16:51:10", "url": "https://files.pythonhosted.org/packages/a2/77/8792bcbae7b91192be7654a8d05bbf7d0bb219c95c192ed246b8ca6a4a34/tbk-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "433ddcb38534d1f4436683b3c000e4e1", "sha256": "a20775372ea6aaed627d81ce7ede663ddb34cfa4ef181ee7d36c8458de7c4498" }, "downloads": -1, "filename": "tbk-0.0.2.tar.gz", "has_sig": false, "md5_digest": "433ddcb38534d1f4436683b3c000e4e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13036, "upload_time": "2014-09-16T17:15:05", "url": "https://files.pythonhosted.org/packages/0f/34/7108b886127000a5562a572d2ad4e18b76d2e78d776d45fe42bc847a20f8/tbk-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "b99970a1b57092991f7265ff11cbfd23", "sha256": "521f01745b8a5f567847e992065e41ea3e3e1de1c64adaf284ffcdb7fe197ce7" }, "downloads": -1, "filename": "tbk-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b99970a1b57092991f7265ff11cbfd23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15101, "upload_time": "2014-09-25T17:18:48", "url": "https://files.pythonhosted.org/packages/c5/24/fe70c8393781ecbbad47a06ec4c874ff4857a4b0e13c800f5d02b2310d6e/tbk-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "ebcca9e9185a65b0b9c2074cb09fcb6d", "sha256": "094b8ba6bc3d6cc2ccf779f838187de3ffd431bb3642f84ed4d68ca7cd176702" }, "downloads": -1, "filename": "tbk-0.0.4.tar.gz", "has_sig": false, "md5_digest": "ebcca9e9185a65b0b9c2074cb09fcb6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15350, "upload_time": "2014-09-30T20:31:31", "url": "https://files.pythonhosted.org/packages/17/0f/f66f4605eab7d72d2abc46d9c409eea16ade931ed371a27ce074b79f4dd9/tbk-0.0.4.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "47642ac48662ef4cc59f0c8c6a2c97d3", "sha256": "6df25ec1f04fe90332dd0037cc4c459caf8958d44b8b939e7cbaebd0d13cc053" }, "downloads": -1, "filename": "tbk-0.1.0.tar.gz", "has_sig": false, "md5_digest": "47642ac48662ef4cc59f0c8c6a2c97d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15895, "upload_time": "2014-11-05T23:03:59", "url": "https://files.pythonhosted.org/packages/2e/29/6645e7d0904353279decad1525e63e8bd0ac53db1e8942846a78ac765986/tbk-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "36e1d96aa96c1b0e69107321d5f6fe10", "sha256": "dc47cc8eba2d6301f236cd1c36dbcbe848ef2fec169d57ac9dffc4f520594cb4" }, "downloads": -1, "filename": "tbk-0.1.1.tar.gz", "has_sig": false, "md5_digest": "36e1d96aa96c1b0e69107321d5f6fe10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16070, "upload_time": "2014-11-17T19:51:32", "url": "https://files.pythonhosted.org/packages/fb/0b/d6678fc033a82a1f1fd8ecc9aa56b4282eead731305ee6005b6acd3a9e01/tbk-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "99f6e10ef9b6c46eb8092fd63492e3e3", "sha256": "70fabaa6f5c31cc7caf94f5ee4f21b1d5ab374dfe80af88f9398b641c9672691" }, "downloads": -1, "filename": "tbk-0.2.0.tar.gz", "has_sig": false, "md5_digest": "99f6e10ef9b6c46eb8092fd63492e3e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16301, "upload_time": "2014-11-24T19:56:12", "url": "https://files.pythonhosted.org/packages/7c/c0/ac32b0129d595af6b393fb40d8ec97614fcac9db83cb29c7dd525d9fd43f/tbk-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "99f6e10ef9b6c46eb8092fd63492e3e3", "sha256": "70fabaa6f5c31cc7caf94f5ee4f21b1d5ab374dfe80af88f9398b641c9672691" }, "downloads": -1, "filename": "tbk-0.2.0.tar.gz", "has_sig": false, "md5_digest": "99f6e10ef9b6c46eb8092fd63492e3e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16301, "upload_time": "2014-11-24T19:56:12", "url": "https://files.pythonhosted.org/packages/7c/c0/ac32b0129d595af6b393fb40d8ec97614fcac9db83cb29c7dd525d9fd43f/tbk-0.2.0.tar.gz" } ] }