query('SELECT 1')->fetchColumn(); } else { $dbOk = false; } } catch (Throwable $e) { $dbOk = false; @file_put_contents(__DIR__.'/../logs/gateway.log', '['.date('Y-m-d H:i:s').'] homepage db ping fail: '.$e->getMessage()."\n", FILE_APPEND); } $statusText = $dbOk ? 'Operational' : 'Degraded'; $statusColor = $dbOk ? '#16a34a' : '#f59e0b'; // Demo data (SAFE placeholders): $demo = [ 'BTC' => [ 'address' => 'bc1qexampledemobtcaddress000000000000000000', 'amount' => '0.001234', // BIP21: bitcoin:?amount=... 'uri' => null, ], 'USDT' => [ // Tron T-address (TRC20 USDT receive) 'address' => 'TVjsExampleTronAddress0000000000000000000', 'amount' => '12.50', // TRC20 wallet-apps usually accept trc20:?amount=... or tron: // For QR we’ll encode a simple label with address & amount that your pay page parses. 'uri' => null, ], ]; // Prebuild URIs (simple & widely compatible): $demo['BTC']['uri'] = 'bitcoin:'.$demo['BTC']['address'].'?amount='.$demo['BTC']['amount']; // For USDT-TRC20: many wallets support tron:
and show amount on screen; we’ll append amount as query $demo['USDT']['uri'] = 'tron:'.$demo['USDT']['address'].'?amount='.$demo['USDT']['amount']; ?> <?= htmlspecialchars($brand) ?>
logo
Self-hosted • Non-custodial

Minimal Crypto Payments — BTC & USDT-TRC20

A production-ready gateway that never stores private keys. Assign pre-generated addresses, verify via public APIs, charge configurable fees, and deliver smooth QR checkout with your brand at the center.

Checkout Live Demo
Payment QR
Send 0 BTC
address
Scan QR in your wallet app • Demo only
Payments
BTC (on-chain) & USDT-TRC20
Address pool assignment (no private keys on server)
Blockstream & TronScan verification
1 confirmation (configurable)
Checkout & UX
Branded QR with center logo
Instant QR + Copy buttons (amount, address, memo)
PDF receipt after confirmation
Mobile-friendly responsive UI
Control & Security
Simple yet Secure
Configurable gateway fee & affiliate rules
Webhooks on paid/confirmed
No sensitive details on public pages
Developers
Simple JSON endpoints, sample cURL & webhook format