Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/onrik/pyqiwi

Python client for QIWI payment system
https://github.com/onrik/pyqiwi

payment python python3 qiwi qiwi-api

Last synced: about 1 month ago
JSON representation

Python client for QIWI payment system

Awesome Lists containing this project

README

        

# Pyqiwi
[![Build Status](https://travis-ci.org/onrik/pyqiwi.svg?branch=master)](https://travis-ci.org/onrik/pyqiwi)
[![Coverage Status](https://coveralls.io/repos/github/onrik/pyqiwi/badge.svg?branch=master)](https://coveralls.io/github/onrik/pyqiwi?branch=master)
[![Gitter](https://badges.gitter.im/onrik/pyqiwi.svg)](https://gitter.im/onrik/pyqiwi)

Lib for [QIWI](https://qiwi.com/) 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.get_invoice('101')
print 'To pay invoice go to:', qiwi.get_invoice_url('101')