pyq
pyqiwi
pypi i pyqiwi
pyq

pyqiwi

Python client for QIWI payment system

by Andrey

0.2.0 (see all)License:MITCategories:Vanilla Python Finance API
pypi i pyqiwi
Readme

Pyqiwi

Build Status Coverage Status Gitter

Lib for QIWI payment system

Installation

pip install pyqiwi

Usage

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.get_invoice('101')
print 'To pay invoice go to:', qiwi.get_invoice_url('101')

GitHub Stars

13

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.2.0
5yrs ago
0.1.1
6yrs ago
No tutorials found
Add a tutorial