This guide explains how to integrate the Hypersend deposit flow into your casino or gaming platform.
Follow these steps to quickly integrate Hypersend into your platform:
Create an account at dashboard.hypersend.io and get your API keys.
Install the Hypersend SDK via npm:
npm install @hypersend/casino-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();
});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'
}
);