Metadata-Version: 2.1
Name: aiopay
Version: 1.0.3
Summary: Payme API uchun Asinxron kutubxona!!!
Home-page: https://github.com/bultakov/aiopay
Author: Ibrohim Bultakov
Author-email: bii23.uz@gmail.com
License: MIT
Keywords: paycom,paymeuz,pypi,python,paycomuz,aiopay
Classifier: Framework :: AsyncIO
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.7
Description-Content-Type: text/markdown

![alt text](https://i.imgur.com/XDz8NNJ_d.webp?maxwidth=760&fidelity=grand)

# Payme API uchun Asinxron kutubxona!!!

<hr>

## Boshlash

* O'rnatish:

```
$ pip install -U aiopay
```

* Example:

```python
from asyncio import get_event_loop

from 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"
    }
  }
}
```
