pub.dev: kkhayv1.0.4iOS, Android, Web & Desktop
Flutter & Dart SDK
The official Dart and Flutter SDK for cross-platform cryptocurrency payments. Pure Dart implementation with zero native platform channels, full HMAC-SHA256 signature verification, and support for 500+ currencies on 190+ chains.
1. Installation
pub.dev Package
$flutter pub add kkhay
2. Client Initialization & Invoice Creation
main.dart
import 'package:flutter/material.dart';import 'package:kkhay/kkhay.dart'; final kkhay = KkhayClient( apiKey: 'kkhay_live_YOUR_KEY',); Future<void> checkout() async { final invoice = await kkhay.createInvoice( amount: 25.00, currency: 'USD', payNetwork: 'bsc', // Optional: 'solana', 'bitcoin', 'polygon' payToken: 'USDT', orderId: 'FLUTTER-301', title: 'Digital Artwork Pass', ); print('Invoice ID: ${invoice.id}'); print('Checkout URL: ${invoice.hostedUrl}'); // Open invoice.hostedUrl via url_launcher or InAppWebView}