A Python package for easy integration with the UnitedPayment API, simplifying payment processing and transaction management. It offers a user-friendly interface, comprehensive documentation, and built-in tests, making integration effortless for developers.
Project description
UnitedPayment API Integration Package
A Python package for integrating with the UnitedPayment API, allowing easy access to payment functionalities like checkout, card registration, transaction status, and more.
Features
- Checkout processing
- Card registration
- Transaction status inquiries
- Refunds and reversals
- Recurring payments
- Installment options
- Customer card management
- Payment by link with QR code
Installation
You can install the package via pip. Run the following command:
pip install united_payment
Usage
To use the UnitedPayment API package, first import the main class and initialize it with your credentials:
from united_payment.client import UnitedPaymentAPI, Language, Currency
# Initialize the API client
api = UnitedPaymentAPI(
base_url='https://test-vpos.unitedpayment.az/api',
email='support@unitedpayment.com',
password='Testmerchant12!'
)
Example: Checkout
Here's how to perform a checkout:
response = api.checkout(
amount='100',
language=Language.EN,
success_url='https://success.url',
cancel_url='https://cancel.url',
decline_url='https://decline.url',
currency=Currency.AZN
)
print(response)
Documentation
For detailed API documentation, refer to the following link: UnitedPayment API Documentation
Testing
To run the tests, use the following command:
python -m unittest discover -s tests
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please submit a pull request or open an issue for any suggestions or improvements.
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 united_payment-0.1.1.tar.gz.
File metadata
- Download URL: united_payment-0.1.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
654520c08dadae840b2447993fd2f64d5e76db2a4b4801a1f81586a3b14f51a6
|
|
| MD5 |
f4d179439be3743eebd4f8b88dc0b8fb
|
|
| BLAKE2b-256 |
7bb2e11b388f05bd3405462b04a04c7a5249e9c710a1dfe78a6068e489c1273f
|
File details
Details for the file united_payment-0.1.1-py3-none-any.whl.
File metadata
- Download URL: united_payment-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d20596484be40154f9ef3899e8e0e60a02bd87fe63980e2340f0871de9283d7
|
|
| MD5 |
18072b433fee8f88d3e33cfbaf9fbd30
|
|
| BLAKE2b-256 |
387ed322b424be356351bee2d611070575faae778903117b5611e8aa6eac6a5d
|