Skip to content

TheArcherST/aiolava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async Lava API

Example

import asyncio

from aiolava import BusinessClient


async def main():
    client = BusinessClient(
        private_key="INSERT_PRIVATE_KEY",
        mics_key="INSERT_MICS_KEY",
        shop_id="INSERT_SHOP_ID"  # optional
    )
    
    invoice = await client.create_invoice(
        sum_=10,
        order_id="order#10"
    )
    print(invoice.data.url)
    
    status = await client.check_invoice_status(
        order_id="order#10"
    )
    print(status.data.status)


if __name__ == '__main__':
    asyncio.run(main())