Documentation: https://timnekk.github.io/PyPayment/
Source Code: https://github.com/TimNekk/PyPayment
PyPayment is a wrapper for payment provider APIs
Main idea – unified interface for every provider
This library simplifies payment integration
Supported Providers
Installation
Install the latest version with PyPI
pip install -U pypayment
Quickstart
# Choose payment provider. For example, Qiwi
from pypayment import Payment, QiwiPayment, PaymentStatus
# Authorize payment provider
QiwiPayment.authorize("my_secret_key")
# Create a payment and get its url
payment: Payment = QiwiPayment(amount=100)
print(payment.url) # https://oplata.qiwi.com/form/?invoice_uid=<payment_unique_id>
# Wait for payment to be completed
while payment.status != PaymentStatus.PAID:
input("Press Enter to update payment status...")
# Use `update()` method to update payment's `status` and `income`
payment.update()
print("Payment is completed!")
print(payment.income) # 90.0 (if commission is 10%)
[!NOTE] For more details see documentation
Contributing
Contributions are welcome! Here's how you can help:
- Fork it
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
- Get your code reviewed
- Merge your code
- Get a 🌟
License
This project is licensed under the MIT License - see the LICENSE file for details
Metadata
Release files for pypayment 1.8.1
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 | |
|---|---|---|---|---|
| pypayment-1.8.1.tar.gz | 17.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypayment-1.8.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.5 kB
Release files / pypayment-1.8.1.tar.gz
| Download URL | pypayment-1.8.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
604366b59b5911159c37946f344c2fb9c6c9abde33d0b5246a2bc6d56ec66367
|
|
BLAKE2b-256 checksum How to use checksums |
7efb4ed3ef9671b7ef27989f4f2c640257c7ed93e46090799baad67be80a941a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.7 Linux/6.11.0-1018-azure
|
Release files / pypayment-1.8.1-py3-none-any.whl
| Download URL | pypayment-1.8.1-py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5fdd2e716db7aefbda14474caeeae0ab189de4857b933ee97be18edc8dc03e8a
|
|
BLAKE2b-256 checksum How to use checksums |
9cae1fc70ce0f378abc56e6e0806cc01912a3f7ee155aebea1e7e72c4d3ceb84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.7 Linux/6.11.0-1018-azure
|
Security for pypayment 1.8.1
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.