Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/onrik/pyqiwi
- Owner: onrik
- License: mit
- Created: 2016-10-19T13:15:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-04T11:54:49.000Z (almost 8 years ago)
- Last Synced: 2024-11-11T13:52:34.473Z (about 1 month ago)
- Topics: payment, python, python3, qiwi, qiwi-api
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 11
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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, timedeltafrom 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')