Hypersend Integration Documentation

This guide explains how to integrate the Hypersend deposit flow into your casino or gaming platform.

Quick Start Guide

Follow these steps to quickly integrate Hypersend into your platform:

1. Sign up for Hypersend

Create an account at dashboard.hypersend.io and get your API keys.

2. Install the SDK

Install the Hypersend SDK via npm:

npm install @hypersend/casino-sdk

3. Initialize the SDK

Add the following code to your application:

// Initialize the SDK
const hypersend = new HypersendSDK({
  apiKey: 'YOUR_API_KEY',
  casinoName: 'Your Casino',
  casinoWallet: 'YOUR_WALLET_ADDRESS',
  onSuccess: (data) => {
    console.log(`Deposit successful: ${data.amount} ${data.token}`);
    // Update UI or balance
    updateUserBalance(data.amount);
  }
});

// Open deposit flow
document.getElementById('deposit-button').addEventListener('click', () => {
  hypersend.openDepositModal();
});

4. Add Quick Deposit Buttons

Add Quick Deposit buttons to your games:

// Create quick deposit button
hypersend.createQuickDepositButton(
  document.getElementById('quick-deposit-container'),
  { 
    amount: 50, 
    token: 'USDT',
    label: 'Quick Deposit $50'
  }
);