Skip to main content

pypaiz

Project description

PAYZ SDK

Project Overview

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

Table of Contents

Getting Started

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

Installation

pip install pypayz

Features

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

Feature 1: Create payment widget

from pypayz 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 pypayz 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 pypayz 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 PAYZ SDK. If you are interested in contributing to the PAYZ 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 PAYZ SDK is licensed under the MIT License.

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

pypayz-0.1.10.tar.gz (10.4 kB view details)

Uploaded Source

File details

Details for the file pypayz-0.1.10.tar.gz.

File metadata

  • Download URL: pypayz-0.1.10.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pypayz-0.1.10.tar.gz
Algorithm Hash digest
SHA256 b0a50c2a0a21954cb06eae34817d2e3d296ed4cd9d15c20f9926a28533ecc697
MD5 771f007b03bc75362504baa4248969f9
BLAKE2b-256 63dc48fcd0b49f324de40ff3b246d8c5512cec80ac5875a357cf9e271c83668f

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