Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

united-payment

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

united-payment

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.

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc