Name | CISPay JSON |
Version |
1.0
JSON |
| download |
home_page | None |
Summary | Library for Python 3+ to accept payments on CISPay |
upload_time | 2024-08-15 20:33:07 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | MIT License Copyright (c) 2024 CISPay Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
api
payments
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# PythonLib
> Библиотека, разработанная для Python 3.7+, которая позволяет создавать платежи и проверять их статус
---
#### Инструкция
##### Установка библиотеки
- 1.1. Выполните команду - `pip install CISPay`
или
- 1.2. Скачайте исходный код - `git clone https://github.com/CISPay/PythonLib`
##### Использование
###### Создание счета
```
from CISPay import CISPay
client = CISPay('uuid') # UUID вашего мерчанта
amount = 500
comment = 'Test'
expire = 1500
data = client.order_create(amount, comment, expire)
# data = {
# 'status': 'success',
# 'uuid': 'a3938999-155b-42ba-9e48-9fd0a8a8dc77',
# 'url': 'https://acquire.cispay.pro/a3938999-155b-42ba-9e48-9fd0a8a8dc77',
# 'expire': 1685566800,
# 'sum': 500.0
# }
```
###### Получение информации о счете
```
from CISPay import CISPay
client = CISPay('uuid') # UUID вашего мерчанта
uuid = 'a3938999-155b-42ba-9e48-9fd0a8a8dc77' # Полученный UUID при создании счета
data = client.order_info(uuid)
# data = {
# 'status': 'success',
# 'id': 123,
# 'uuid': 'a3938999-155b-42ba-9e48-9fd0a8a8dc77',
# 'shop_uuid': 'dc4bc78f-27ba-4778-96ce-905c6b23c3e9',
# 'amount': 500.0,
# 'comment': 'Test',
# 'expire': 1685566800,
# 'is_test': 1
# }
```
---
## Лицензия
Copyright © 2024 [CISPay](https://github.com/CISPay)
Проект распространяется под лицензией [MIT](LICENSE)
Raw data
{
"_id": null,
"home_page": null,
"name": "CISPay",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "api, payments",
"author": null,
"author_email": "dotmix <me@dotmix.eu>",
"download_url": "https://files.pythonhosted.org/packages/88/ae/0a0c97060a691797eebdc2bf928b62bb7965a59c93546b332bc2b9506847/cispay-1.0.tar.gz",
"platform": null,
"description": "# PythonLib\n> \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u0430\u044f \u0434\u043b\u044f Python 3.7+, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\n\n---\n#### \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\n##### \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438\n- 1.1. \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 - `pip install CISPay`\n\u0438\u043b\u0438\n- 1.2. \u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 - `git clone https://github.com/CISPay/PythonLib`\n\n##### \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\n###### \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0447\u0435\u0442\u0430\n```\nfrom CISPay import CISPay\n\nclient = CISPay('uuid') # UUID \u0432\u0430\u0448\u0435\u0433\u043e \u043c\u0435\u0440\u0447\u0430\u043d\u0442\u0430\n\namount = 500\ncomment = 'Test'\nexpire = 1500\n\ndata = client.order_create(amount, comment, expire)\n# data = {\n# 'status': 'success', \n# 'uuid': 'a3938999-155b-42ba-9e48-9fd0a8a8dc77', \n# 'url': 'https://acquire.cispay.pro/a3938999-155b-42ba-9e48-9fd0a8a8dc77', \n# 'expire': 1685566800, \n# 'sum': 500.0 \n# }\n```\n###### \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0441\u0447\u0435\u0442\u0435\n```\nfrom CISPay import CISPay\n\nclient = CISPay('uuid') # UUID \u0432\u0430\u0448\u0435\u0433\u043e \u043c\u0435\u0440\u0447\u0430\u043d\u0442\u0430\nuuid = 'a3938999-155b-42ba-9e48-9fd0a8a8dc77' # \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 UUID \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0447\u0435\u0442\u0430\n\ndata = client.order_info(uuid)\n# data = {\n# 'status': 'success', \n# 'id': 123,\n# 'uuid': 'a3938999-155b-42ba-9e48-9fd0a8a8dc77', \n# 'shop_uuid': 'dc4bc78f-27ba-4778-96ce-905c6b23c3e9',\n# 'amount': 500.0,\n# 'comment': 'Test',\n# 'expire': 1685566800, \n# 'is_test': 1\n# }\n```\n---\n\n## \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f\n\nCopyright \u00a9 2024 [CISPay](https://github.com/CISPay)\n\n\u041f\u0440\u043e\u0435\u043a\u0442 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 [MIT](LICENSE)",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 CISPay Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Library for Python 3+ to accept payments on CISPay",
"version": "1.0",
"project_urls": {
"Homepage": "https://github.com/CISPay/PythonLib"
},
"split_keywords": [
"api",
" payments"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e978df934a2c9a6880744c1ac485aa4baaf94150d766b88f1d883a8d18457ac0",
"md5": "ca12ae9e1fbf1cb3cbdf1bc679cc0934",
"sha256": "2bcd7cb825c9a829d1d38ad9a0a1be4f42bc410c0e683fba6d03ee76453424ec"
},
"downloads": -1,
"filename": "cispay-1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ca12ae9e1fbf1cb3cbdf1bc679cc0934",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 4181,
"upload_time": "2024-08-15T20:33:06",
"upload_time_iso_8601": "2024-08-15T20:33:06.175211Z",
"url": "https://files.pythonhosted.org/packages/e9/78/df934a2c9a6880744c1ac485aa4baaf94150d766b88f1d883a8d18457ac0/cispay-1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "88ae0a0c97060a691797eebdc2bf928b62bb7965a59c93546b332bc2b9506847",
"md5": "e31a236800b03f68b61e82dd2d2c2e13",
"sha256": "e5472f06c8ca654b6d76f2ca8fb46527e34172fd93e160e918ae56d503362034"
},
"downloads": -1,
"filename": "cispay-1.0.tar.gz",
"has_sig": false,
"md5_digest": "e31a236800b03f68b61e82dd2d2c2e13",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3059,
"upload_time": "2024-08-15T20:33:07",
"upload_time_iso_8601": "2024-08-15T20:33:07.993997Z",
"url": "https://files.pythonhosted.org/packages/88/ae/0a0c97060a691797eebdc2bf928b62bb7965a59c93546b332bc2b9506847/cispay-1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-15 20:33:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "CISPay",
"github_project": "PythonLib",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cispay"
}