Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bultakov/aiopay
Payme API uchun Asinxron kutubxona!!!
https://github.com/bultakov/aiopay
aiopay asyncio payme paymeuz python
Last synced: about 2 months ago
JSON representation
Payme API uchun Asinxron kutubxona!!!
- Host: GitHub
- URL: https://github.com/bultakov/aiopay
- Owner: bultakov
- Created: 2022-08-25T19:11:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-30T08:35:27.000Z (over 2 years ago)
- Last Synced: 2024-11-06T13:19:29.949Z (2 months ago)
- Topics: aiopay, asyncio, payme, paymeuz, python
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![alt text](https://i.imgur.com/XDz8NNJ_d.webp?maxwidth=760&fidelity=grand)
# Payme API uchun Asinxron kutubxona!!!
## Boshlash
* O'rnatish:
```
$ pip install -U aiopay
```* Example:
```python3
from asyncio import get_event_loopfrom payme_uz.cards import PaymeSubscribeCard
async def main():
card_api = PaymeSubscribeCard(
paycom_id='paycom_id',
debug=True
) # debug: True - sinov rejimi, False - ishlab chiqarish rejimi
data = await card_api.create(number='860006******6311', expire='0399', save=True)
print(data)
await card_api.close()if __name__ == '__main__':
get_event_loop().run_until_complete(main())```
* Result:
```json5
{
"jsonrpc": "2.0",
"result": {
"card": {
"number": "860006******6311",
"expire": "03/99",
"token": "6308******5xUj",
"recurrent": true,
"verify": false,
"type": "22618"
}
}
}
```