Skip to main content

Midasbuy Minigame SDK API Protocol

1. Overview

Midasbuy Minigame SDK is a unified mini-game SDK loader and adapter that provides consistent API interfaces for Menu, Payment, and Login function modules.

2. SDK Integration

<script src="https://cdn.midasbuy.com/js/minigame.stable.js"></script>

3. Module Overview

ModuleDescriptionDocumentation
Getting StartedSDK initialization, utility methods, and complete usage exampleGetting Started
MenuGame menu display with portrait and landscape modesMenu
PaymentPayment page integration with Promise and event-based stylesPayment
LoginUser authentication with JWT token supportLogin
ProductsProduct shelf data retrieval for in-game displayProducts
EventsEvent listening and management systemEvents
Error HandlingError types and error codesError Handling
Type DefinitionsTypeScript type declarations for all SDK interfacesType Definitions