GamepayPy — удобный способ для работы с GamePay API
GamepayPy упрощает взаимодействие с GamePay API (gamepay.best)
Инструкция:
Установка модуля GamepayPy с pypi.org:
pip3 install GamepayPy
Использования модуля:
Импортирование модуля GamepayPy:
from GamepayPy import *
Подключение вашего API-токена:
test = GamepayPy(token="ВАШ_ТОКЕН")
Доступные методы:
# Создание ссылки для оплаты:
test.createOrder(unique_id, amount, shop_id, description)
>> https://gamepay.best/pay/xxxx-xxxx-xxxx-xxxx
# Проверка статуса заказа:
test.checkStatus(order_id)
>> 0 (другое значение, в случае успеха)
# Получение баланса аккаунта:
test.checkBalance()
>> 0.0
Список параметров:
token (str) - Ваш токен от аккаунта.
unique_id (int) - Уникальный ID заказа в вашей системе.
amount (int) - Сумма пополнения (в рублях).
shop_id (int) - ID вашего магазина.
description (str) - описание к пополнению/заказу.
order_id (int) - ID заказа.
Официальная документация API GamePay.best: https://gamepay.best/doc
Metadata
Release files for GamepayPy 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| GamepayPy-1.0.0.tar.gz | 2.4 kB | Without provenance | Details for GamepayPy-1.0.0.tar.gz |
Release files / GamepayPy-1.0.0.tar.gz
| Download URL | GamepayPy-1.0.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df0ba8a678f9c0f4f531a1a855f211684a33fbf126f89c39152e10be765834e4
|
|
BLAKE2b-256 checksum How to use checksums |
db97721e5a9d0a29e55ec17c2e6d3dd85c33b39141c3e8b4e23adaeda07ea269
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.9
|
Security for GamepayPy 1.0.0
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.