Skip to main content

Wallex SDK

Project Overview

The Wallex SDK is a software development kit that provides a set of tools and utilities for integrating with the Wallex payment gateway.

Table of Contents

Getting Started

This section provides instructions on how to get started with the Wallex SDK.

Installation

pip install pywallex

Features

This section describes the main features and capabilities of the Wallex SDK.

Feature 1: Create payment widget

from pywallex import Widget

widget = Widget(1, 'secret_key')

payment_url = await widget.create_payment(
    Widget.PaymentModel(
        product='client@mail.ru',
        price='Xiaomi 9T',
        quantity=1000,
        message=1,
        description='Hello thanks for order',
        currency='Xiaomi 9T',
        fiat_currency='USDT',
        language='rub',
        uuid='ru'
    )
)  # Returns payment url

Feature 2: Verify payment

from pywallex import Webhook

payment_data = {}  # Replace with actual POST data
payment = Webhook(payment_data)

if payment.is_verified('secret_key') and payment.is_success():
    # Payment success logic
    # For example:
    client = payment.get_client()  # Get client email
    # Update user balance:
    # User.objects.filter(email=client).update(balance=payment.get_amount())

Feature 3: Payouts

from pywallex import Payout

payout = Payout(merchant_id, secret_key)

await payout.crypto_pay(
    Payout.CryptoPayModel(
        address=address,
        amount=amount,
        currency=currency,
    )
)

Contributing

We welcome contributions from the developer community to improve the Wallex SDK. If you are interested in contributing to the Wallex SDK, please follow the steps below:

  1. Fork the repository on GitHub.
  2. Create a new branch for your feature or bug fix.
  3. Make the necessary changes in your branch.
  4. Write tests to ensure the changes are working as expected.
  5. Submit a pull request with your changes.

License

The Wallex SDK is licensed under the MIT License.

Metadata

Release files for pywallex 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywallex 0.1.10
File Size Uploaded Provenance Actions
pywallex-0.1.10.tar.gz 12.5 kB Without provenance Details for pywallex-0.1.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pywallex 0.1.10
File Interpreter ABI Platform Actions
pywallex-0.1.10-py3-none-any.whl Python 3 none any Details for pywallex-0.1.10-py3-none-any.whl

Total release size: 27.8 kB

Release files / pywallex-0.1.10.tar.gz

Download URL pywallex-0.1.10.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c3e15e9e9609d4141818aab313ae94dff8af98ae4fbae19278a7e19aea296fcb
BLAKE2b-256 checksum
How to use checksums
b20a285a541598c60b7215f2fe1e12ebd2869c44be1b783026265167551f6506
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.6 Linux/5.15.0-1042-azure

Release files / pywallex-0.1.10-py3-none-any.whl

Download URL pywallex-0.1.10-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88b36ad4780531dcb63e2fb890abf31e759681ab8215377a56cf211811f0b6c0
BLAKE2b-256 checksum
How to use checksums
7245cebb0638280229aad109a5acd714eacb42a0f0658f128d5e3db1d2b2b01e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.6 Linux/5.15.0-1042-azure

Security for pywallex 0.1.10

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page