Client Overview
Clients are merchants who use surstrom to accept payments. Payments are processed through the Relay network and settled on Solana.
What You Do
- Generate an API key from the dashboard
- Create payments via the
POST /api/payment/initendpoint - Embed the returned relay page URL in an iframe on your site
- Receive settlements to your Solana wallet
- Configure webhooks for real-time payment notifications
Revenue Flow
For each payment:
- Customer pays $100
- Relay takes their fee (e.g., 7%)
- You receive the remainder: $93.00
Dashboard
Your Client dashboard shows:
- Overview — Volume charts, status breakdown, wallet balance
- Transactions — All your payments with status and details
- New Payment — Quick payment creation form
- Deposit — Wallet balance and withdrawal management
- Reviews — Reviews from Relays about your account
- Settings — API key, webhook URL, 2FA
Payment Flow
Payment Flowtext
Your Backend → POST /api/payment/init → Get relayPage URL + providerId
↓
Your Frontend → Embed relayPage in iframe → Customer pays
↓
Iframe → postMessage to parent → payment-success with proof token
↓
Your Frontend → Verify proof → Payment confirmed → Fulfill order
↓
Settlement (async) → USDC sent to your walletWebhooks run in parallel and can be used as a backup notification channel or to update your server-side database.