gQiwiAPI by Gnifajio
A simple API for creating a payment link
Installation
git clone https://github.com/gnifajio/gQiwiAPI.git
pip install -r requirements.txt
cd gQiwiAPI
python3 setup.py install
or
pip install gQiwiAPI
Usage
# Initialization
from gQiwiAPI import Qiwi
SECRET_KEY = 'Your secret key for managing payments'
qiwi = Qiwi(SECRET_KEY)
# Creating a bill
my_first_bill = qiwi.new(10, '15m')
# Getting a payment link
payUrl = my_first_bill.payUrl
# Checking the payment status
bill_state = qiwi.status(my_first_bill)
# Checking the payment status by id
state_by_id = qiwi.check_id(my_first_bill.bill_id)
You can get
SECRET_KEYon official website.
Syntax
class Qiwi:
def new(self, amount, comment=None, exp_dt='15m'): ...
amount- the amount of the payment in rubles.comment- commentexpDT- the validity time of the link.
About amount I will only say that you can pass str, int and float there and everything will work fine.
The default comment is set to None, and is not used.
You can add a comment to the payment like this:
qiwi.create_bill(self, 10, comment='Test', expDT='30m')
expDT is set in the format nd:nh:nm:ns, where
n- intd- daysh- hoursm- minutess- seconds
You can pass both integer and fractional numbers to n, the order is also not important.
For example:
from gQiwiAPI import Qiwi
qiwi = Qiwi('SECRET_KEY')
amount = 10
qiwi.new(amount, exp_dt='0.3d:77m:0.5h')
Links
QIWI: API of P2P accounts. Invoicing.
TODO
- Expand the API
-
- Add
customersupport
- Add
-
- Add
customFieldssupport
- Add
Metadata
Release files for gQiwiAPI 1.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gQiwiAPI-1.4.7.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gQiwiAPI-1.4.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / gQiwiAPI-1.4.7.tar.gz
| Download URL | gQiwiAPI-1.4.7.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
929b9061c942fec61b075567efa5aaa011dc65a33ca6d2f56f51bbfe1bd8278f
|
|
BLAKE2b-256 checksum How to use checksums |
a5e0542d08ae4cd78ec807c8428ea7767f3a6741cf13d070c49a357ed761d315
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / gQiwiAPI-1.4.7-py3-none-any.whl
| Download URL | gQiwiAPI-1.4.7-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8311cdd45b4e4338bd914c76fcd758fde6d3d907a96dd74fd8634ddf25f049b
|
|
BLAKE2b-256 checksum How to use checksums |
8e414fbfe1500ba6cfaa952ab4ed9a6540a59dcd3cb8547a88ea343c49d408bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for gQiwiAPI 1.4.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.