{"id":15024438,"url":"https://github.com/rajab-murod/paymeuz","last_synced_at":"2025-04-12T06:32:05.199Z","repository":{"id":57451179,"uuid":"289604292","full_name":"rajab-murod/paymeuz","owner":"rajab-murod","description":" payme.uz integration with Python/Django","archived":false,"fork":false,"pushed_at":"2021-03-12T02:17:15.000Z","size":33,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T02:03:36.934Z","etag":null,"topics":["django","djangorestframework","paymeuz","python","subscribeapi"],"latest_commit_sha":null,"homepage":"https://help.paycom.uz/ru/metody-subscribe-api","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rajab-murod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-23T02:51:11.000Z","updated_at":"2024-04-02T17:40:59.000Z","dependencies_parsed_at":"2022-09-26T17:31:30.377Z","dependency_job_id":null,"html_url":"https://github.com/rajab-murod/paymeuz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajab-murod%2Fpaymeuz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajab-murod%2Fpaymeuz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajab-murod%2Fpaymeuz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajab-murod%2Fpaymeuz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajab-murod","download_url":"https://codeload.github.com/rajab-murod/paymeuz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248529784,"owners_count":21119579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","djangorestframework","paymeuz","python","subscribeapi"],"created_at":"2024-09-24T20:00:21.561Z","updated_at":"2025-04-12T06:32:04.429Z","avatar_url":"https://github.com/rajab-murod.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![dj_logo](https://i.pinimg.com/originals/73/b8/f2/73b8f2cac59ab9fb4078241808fbb507.jpg)\n## Introduction\n\nThis package helps to integrate [payme.uz](http://payme.uz) and your application is built on [django](https://www.djangoproject.com/).\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install.\n\n```bash\npip install requests\npip install djangorestframework\npip install paymeuz\n```\n\n## Usage\n\n```python\n# settings.py\n\nINSTALLED_APPS = [\n     ... \n    'paymeuz',\n    'rest_framework',\n     ...\n]\n\nPAYME_SETTINGS = {\n    'DEBUG':True,   #True - test mode, False - production mode\n    'ID':'',  \n    'SECRET_KEY':'',\n    'ACCOUNTS':{\n        'KEY_1':'order_id',\n        'KEY_2':'',\n    }\n}\n\n# urls.py\n\nurlpatterns = [\n    ...\n    path('api/payme/',include('paymeuz.urls'))\n]\n```\n\n## Get started\n```bash\npython manage.py migrate\npython manage.py runserver\n```\nSo now we have new API endpoint, which is ```/api/payme/```.\n\n**Let's try the first create card request:**\n```\nPOST HTTP/1.1\nHost: http://127.0.0.1:8000/api/payme/card/create/\n{\n    \"id\": 123,\n    \"params\": {\n        \"card\": { \"number\": \"4444444444444444\", \"expire\": \"0420\"},\n        \"amount\": 500000, \n        \"save\": true\n    }\n}\n```\n\n**Response:**\n```\n{\n    \"jsonrpc\": \"2.0\",\n    \"result\": {\n        \"sent\": true,\n        \"phone\": \"99890*****66\",\n        \"wait\": 60000\n    },\n    \"token\": \"5f460c3d4e6d0841074e7457_YgQMNCttjxKTMKcfN0GPSaaKyV4zPnJqRP4iezHfBGJBpfAyjJf0onx5QXIkmChPDdGJrUpXj2EqWFnTicR4W7p1nXFVvKPegirWSYObyNvrcz18IQbbAVXPTOq1cFQQVrfN1tBM3XdQChu3yr1kTokO7vmeGyCyPZzdO0G4SJeKIwsJiJJk8jvGYpYk0csZh0OhTd01sXIu1qQ4H79qN5vIi5U9rpQcwWra9ueCgJqgU4XgWE2OaGjY4G3qpDHr7ezOUg4Ud3M7S8A1CnsubOD0rhUnOdwWhIU6wuNVJX6xNYD5vjRd4W1StByQeEgIFWHTe4md6nCpSKANPUCH7xnfa3UUu2gz9WJ0PDmOoPwdVo53v9OpQ23kta0sUzMJgSJt\"\n}\n```\n\n\n**The second verify request:**\n```\nPOST HTTP/1.1\nHost: http://127.0.0.1:8000/api/payme/card/verify/\n{\n    \"id\": 123,\n    \"params\": {\n        \"token\": \"5f460c3d4e6d0841074e7457_YgQMNCttjxKTMKcfN0GPSaaKyV4zPnJqRP4iezHfBGJBpfAyjJf0onx5QXIkmChPDdGJrUpXj2EqWFnTicR4W7p1nXFVvKPegirWSYObyNvrcz18IQbbAVXPTOq1cFQQVrfN1tBM3XdQChu3yr1kTokO7vmeGyCyPZzdO0G4SJeKIwsJiJJk8jvGYpYk0csZh0OhTd01sXIu1qQ4H79qN5vIi5U9rpQcwWra9ueCgJqgU4XgWE2OaGjY4G3qpDHr7ezOUg4Ud3M7S8A1CnsubOD0rhUnOdwWhIU6wuNVJX6xNYD5vjRd4W1StByQeEgIFWHTe4md6nCpSKANPUCH7xnfa3UUu2gz9WJ0PDmOoPwdVo53v9OpQ23kta0sUzMJgSJt\",\n        \"code\": \"666666\"\n    }\n}\n```\n\n**Response:**\n```\n{\n    \"jsonrpc\": \"2.0\",\n    \"id\": 123,\n    \"result\": {\n        \"card\": {\n            \"number\": \"860006******6311\",\n            \"expire\": \"03/99\",\n            \"token\": \"5f460c3d4e6d0841074e7457_YgQMNCttjxKTMKcfN0GPSaaKyV4zPnJqRP4iezHfBGJBpfAyjJf0onx5QXIkmChPDdGJrUpXj2EqWFnTicR4W7p1nXFVvKPegirWSYObyNvrcz18IQbbAVXPTOq1cFQQVrfN1tBM3XdQChu3yr1kTokO7vmeGyCyPZzdO0G4SJeKIwsJiJJk8jvGYpYk0csZh0OhTd01sXIu1qQ4H79qN5vIi5U9rpQcwWra9ueCgJqgU4XgWE2OaGjY4G3qpDHr7ezOUg4Ud3M7S8A1CnsubOD0rhUnOdwWhIU6wuNVJX6xNYD5vjRd4W1StByQeEgIFWHTe4md6nCpSKANPUCH7xnfa3UUu2gz9WJ0PDmOoPwdVo53v9OpQ23kta0sUzMJgSJt\",\n            \"recurrent\": true,\n            \"verify\": true,\n            \"type\": \"22618\"\n        }\n    }\n}\n```\n\n\n**The third payment request:**\n```\nPOST HTTP/1.1\nHost: http://127.0.0.1:8000/api/payme/payment/\n{\n    \"id\": 123,\n    \"params\": {   \t\"token\":\"5f460c3d4e6d0841074e7457_YgQMNCttjxKTMKcfN0GPSaaKyV4zPnJqRP4iezHfBGJBpfAyjJf0onx5QXIkmChPDdGJrUpXj2EqWFnTicR4W7p1nXFVvKPegirWSYObyNvrcz18IQbbAVXPTOq1cFQQVrfN1tBM3XdQChu3yr1kTokO7vmeGyCyPZzdO0G4SJeKIwsJiJJk8jvGYpYk0csZh0OhTd01sXIu1qQ4H79qN5vIi5U9rpQcwWra9ueCgJqgU4XgWE2OaGjY4G3qpDHr7ezOUg4Ud3M7S8A1CnsubOD0rhUnOdwWhIU6wuNVJX6xNYD5vjRd4W1StByQeEgIFWHTe4md6nCpSKANPUCH7xnfa3UUu2gz9WJ0PDmOoPwdVo53v9OpQ23kta0sUzMJgSJt\",\n        \"amount\": 500000,\n        \"account\": {\n            \"order_id\": 1\n        }\n    }\n}\n```\n\n**Response:**\n```\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 123,\n  \"result\": {\n    \"receipt\": {\n      \"_id\": \"2e0b1bc1f1eb50d487ba268d\",\n      \"create_time\": 1481113810044,\n      \"pay_time\": 1481113810265,\n      \"cancel_time\": 0,\n      \"state\": 4,\n      \"type\": 1,\n      \"external\": false,\n      \"operation\": -1,\n      \"category\": null,\n      \"error\": null,\n      \"description\": \"\",\n      \"detail\": null,\n      \"amount\": 500000,\n      \"commission\": 0,\n      \"account\": [\n        {\n          \"name\": \"order_id\",\n          \"title\": \"Код заказа\",\n          \"value\": \"5\"\n        }\n      ],\n      \"card\": {\n        \"number\": \"444444******4444\",\n        \"expire\": \"0420\"\n      },\n      \"merchant\": {\n        \"_id\": \"100fe486b33784292111b7dc\",\n        \"name\": \"Online Shop LLC\",\n        \"organization\": \"ЧП «Online Shop»\",\n        \"address\": \"\",\n        \"epos\": {\n          \"merchantId\": \"106600000050000\",\n          \"terminalId\": \"20660000\"\n        },\n        \"date\": 1480582278779,\n        \"logo\": null,\n        \"type\": \"Shop\",\n        \"terms\": null\n      },\n      \"meta\": null\n    }\n  }\n}\n```\n\n\n**Screenshot from django admin panel:**\n\n![screen_payment](https://i.pinimg.com/originals/bf/7c/28/bf7c28bbc89ddef7ead33989c0f2b1f6.jpg)\n\n## Documentation\n - payme.uz [docs](https://help.paycom.uz/ru/metody-subscribe-api)\n - django-rest-framework [docs](https://www.django-rest-framework.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajab-murod%2Fpaymeuz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajab-murod%2Fpaymeuz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajab-murod%2Fpaymeuz/lists"}