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
| Module | Description | Documentation |
|---|---|---|
| Getting Started | SDK initialization, utility methods, and complete usage example | Getting Started |
| Menu | Game menu display with portrait and landscape modes | Menu |
| Payment | Payment page integration with Promise and event-based styles | Payment |
| Login | User authentication with JWT token support | Login |
| Products | Product shelf data retrieval for in-game display | Products |
| Events | Event listening and management system | Events |
| Error Handling | Error types and error codes | Error Handling |
| Type Definitions | TypeScript type declarations for all SDK interfaces | Type Definitions |