diff --git a/README.md b/README.md index 0622bc9..da42a0a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,33 @@ -# pyqiwi +# Pyqiwi Lib for QIWI payment system + + +Installation +------------ + + pip install pyqiwi + + +Usage +------------ + +```python +from decimal import Decimal +from datetime import datetime, timedelta + +from pyqiwi import Qiwi + + +qiwi = Qiwi('', '', '', '') + +qiwi.create_invoice( + invoice_id='101', # Must be unique for your shop + amount=Decimal('22.00'), + currency='RUB', + comment='Order #101', + user='tel:+79998887766', + lifetime=datetime.now()+timedelta(hours=1), # Must be in Europe/Moscow timezone +) + +print 'Invoice info:', qiwi.create_invoice('101') +print 'To pay invoice go to:', qiwi.get_invoice_url('101')