{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[![Build Status](https://travis-ci.org/ITECOMMPAY/paymentpage-sdk-python.svg?branch=master)](https://travis-ci.org/ITECOMMPAY/paymentpage-sdk-python)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/d02745619d7dfdd5630f/test_coverage)](https://codeclimate.com/github/ITECOMMPAY/paymentpage-sdk-python/test_coverage)\n[![Maintainability](https://api.codeclimate.com/v1/badges/d02745619d7dfdd5630f/maintainability)](https://codeclimate.com/github/ITECOMMPAY/paymentpage-sdk-python/maintainability)\n\n# EcommPay payment page SDK\n\nThis is a set of libraries in the Python language to ease integration of your service\nwith the EcommPay Payment Page.\n\nPlease note that for correct SDK operating you must have at least Python 3.5. \n\n## Payment flow\n\n![Payment flow](https://raw.githubusercontent.com/ITECOMMPAY/paymentpage-sdk-python/master/flow.png)\n\n## Installation\n\nInstall with pip\n```bash\npip install ecommpay-sdk\n```\n\n### Get URL for payment\n\n```python\nfrom payment_page_sdk.gate import Gate\nfrom payment_page_sdk.payment import Payment\n\ngate = Gate('secret')\npayment = Payment('402', 'some payment id')\npayment.payment_amount = 1001\npayment.payment_currency = 'USD'\npayment_url = gate.get_purchase_payment_page_url(payment)\n``` \n\n`payment_url` here is the signed URL.\n\n### Handle callback from Ecommpay\n\nYou'll need to autoload this code in order to handle notifications:\n\n```python\nfrom payment_page_sdk.gate import Gate\n\ngate = Gate('secret')\ncallback = gate.handle_callback(data)\n```\n\n`data` is the JSON data received from payment system;\n\n`callback` is the Callback object describing properties received from payment system;\n`callback` implements these methods: \n1. `callback.get_payment_status()`\n Get payment status.\n2. `callback.get_payment()`\n Get all payment data.\n3. `callback.get_payment_id()`\n Get payment ID in your system.", "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/ITECOMMPAY/paymentpage-sdk-python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ecommpay-sdk", "package_url": "https://pypi.org/project/ecommpay-sdk/", "platform": "", "project_url": "https://pypi.org/project/ecommpay-sdk/", "project_urls": { "Homepage": "https://github.com/ITECOMMPAY/paymentpage-sdk-python" }, "release_url": "https://pypi.org/project/ecommpay-sdk/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "", "version": "1.0.3" }, "last_serial": 5353435, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "9eb558a4022bcc5f95edfa7452b2e040", "sha256": "89140cae2cdd05c13f4859b98c20519c159320ecb8721fcde2c58fe696a6c84e" }, "downloads": -1, "filename": "ecommpay_sdk-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "9eb558a4022bcc5f95edfa7452b2e040", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14203, "upload_time": "2019-04-24T14:45:18", "url": "https://files.pythonhosted.org/packages/47/1c/8d37577ac58a7a6d8a4e15ecdeb2818280b8700af5421c7d175d03779239/ecommpay_sdk-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "175cf8085b56f8276e32bdb92aa9eb45", "sha256": "297b06c801d74ad54c55537e902ea4284aa5a09799588f5000ce34f1841394a1" }, "downloads": -1, "filename": "ecommpay-sdk-1.0.2.tar.gz", "has_sig": false, "md5_digest": "175cf8085b56f8276e32bdb92aa9eb45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5980, "upload_time": "2019-04-24T14:45:20", "url": "https://files.pythonhosted.org/packages/5c/d7/557442c93990bdeb4c0eeee85f30f2973827a7e1cc566d56a96343c6efd1/ecommpay-sdk-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "39a5611c0af44c033eddb6cd3b224266", "sha256": "1e7bae19eb280cf94e6a63aad5dc93a12db3d33919499dbd8ba01f288eecebda" }, "downloads": -1, "filename": "ecommpay_sdk-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "39a5611c0af44c033eddb6cd3b224266", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14271, "upload_time": "2019-06-03T16:14:54", "url": "https://files.pythonhosted.org/packages/5a/6a/9d4ea83592c22a3fdae5b9a23de8c0dc878cbfa38d3aa7194e8e70d128b0/ecommpay_sdk-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f0bfcd3ed063a4d7609324442ec46fe1", "sha256": "42859d7959856b2757e2686633427a036030d086b8dbda9ec7d7ddf3ad716c45" }, "downloads": -1, "filename": "ecommpay-sdk-1.0.3.tar.gz", "has_sig": false, "md5_digest": "f0bfcd3ed063a4d7609324442ec46fe1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6019, "upload_time": "2019-06-03T16:14:31", "url": "https://files.pythonhosted.org/packages/0e/0b/e31819ff929e9b852c0d0efa5e32488ca887b7e0f0b8d007297b057e11d8/ecommpay-sdk-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "39a5611c0af44c033eddb6cd3b224266", "sha256": "1e7bae19eb280cf94e6a63aad5dc93a12db3d33919499dbd8ba01f288eecebda" }, "downloads": -1, "filename": "ecommpay_sdk-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "39a5611c0af44c033eddb6cd3b224266", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14271, "upload_time": "2019-06-03T16:14:54", "url": "https://files.pythonhosted.org/packages/5a/6a/9d4ea83592c22a3fdae5b9a23de8c0dc878cbfa38d3aa7194e8e70d128b0/ecommpay_sdk-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f0bfcd3ed063a4d7609324442ec46fe1", "sha256": "42859d7959856b2757e2686633427a036030d086b8dbda9ec7d7ddf3ad716c45" }, "downloads": -1, "filename": "ecommpay-sdk-1.0.3.tar.gz", "has_sig": false, "md5_digest": "f0bfcd3ed063a4d7609324442ec46fe1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6019, "upload_time": "2019-06-03T16:14:31", "url": "https://files.pythonhosted.org/packages/0e/0b/e31819ff929e9b852c0d0efa5e32488ca887b7e0f0b8d007297b057e11d8/ecommpay-sdk-1.0.3.tar.gz" } ] }