Easy way to work with GamePay.best API
Project description
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
Project details
Release history Release notifications | RSS feed
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 hashes)