Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

united_payment-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

united_payment-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file united_payment-0.1.0.tar.gz.

File metadata

  • Download URL: united_payment-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Windows/10

File hashes

Hashes for united_payment-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c18b6afda107698974f7204dcee6de3bd6d84efc52fafa5f549b323ec6270f5
MD5 90bf8e3af23a894ce4f7840d6c009d31
BLAKE2b-256 adfdf2df9b8f0309cb73df81dc3933b7f1d99f97fcafa107a8cb0f03d58673a6

See more details on using hashes here.

File details

Details for the file united_payment-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: united_payment-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Windows/10

File hashes

Hashes for united_payment-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1648d314f0d1ff3f985e96d0e10705dad18d21818e46d9df70f65853baba9510
MD5 5d4dd23e393f7104d8e178193653c27e
BLAKE2b-256 205ae9a137cc1d91b2836982a21fc49c1b35fa9f01880df5c5f8eb8e90b5ab06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page