Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
onrik authored Nov 6, 2016
1 parent 76f7885 commit 4cf6554
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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('<shop_id>', '<app_id>', '<app_password>', '<notifications_password>')

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')

0 comments on commit 4cf6554

Please sign in to comment.