Payment Providers API Wrapper
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypayment-1.8.1.tar.gz.
File metadata
- Download URL: pypayment-1.8.1.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
604366b59b5911159c37946f344c2fb9c6c9abde33d0b5246a2bc6d56ec66367
|
|
| MD5 |
b1a9651fa18c35a6ebb9d3631cd5ee61
|
|
| BLAKE2b-256 |
7efb4ed3ef9671b7ef27989f4f2c640257c7ed93e46090799baad67be80a941a
|
File details
Details for the file pypayment-1.8.1-py3-none-any.whl.
File metadata
- Download URL: pypayment-1.8.1-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fdd2e716db7aefbda14474caeeae0ab189de4857b933ee97be18edc8dc03e8a
|
|
| MD5 |
d1a99dbbb7214bfe25766e297c0f424c
|
|
| BLAKE2b-256 |
9cae1fc70ce0f378abc56e6e0806cc01912a3f7ee155aebea1e7e72c4d3ceb84
|