Skip to main content

Easy way to work with GamePay.best API

Project description

GamepayPy — удобный способ для работы с GamePay API

logo

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

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

GamepayPy-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file GamepayPy-1.0.0.tar.gz.

File metadata

  • Download URL: GamepayPy-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for GamepayPy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 df0ba8a678f9c0f4f531a1a855f211684a33fbf126f89c39152e10be765834e4
MD5 68ce10c63c6cccb01211afb02bddcbc8
BLAKE2b-256 db97721e5a9d0a29e55ec17c2e6d3dd85c33b39141c3e8b4e23adaeda07ea269

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