Docs
Widget
One script tag adds a checkout to any site. Payment goes straight to your wallet.
Embed
html
<script src="https://www.stabletally.com/pay.js" async></script>
<stabletally-pay merchant="your-slug" amount="49.00"></stabletally-pay>About 11 KB gzipped. Works with injected wallets (EIP-6963), or by sending the exact amount from any wallet.
The script URL is stable (https://www.stabletally.com/pay.js): served with open CORS (Access-Control-Allow-Origin: *) and a one-day cache, so updates reach you automatically.
Spanish, dark theme
<stabletally-pay merchant="your-slug" amount="49.00" lang="es" theme="dark"></stabletally-pay>Demo
Live demo: a payment here sends real USDC to Tiendly, a verified merchant.
Attributes
- merchantRequired*
- Your public slug. Or use publishable-key.
- publishable-keyOptional
- Your pk_live_… key instead of merchant.
- invoiceOptional
- An inv_… id; amount, token and networks come from the invoice.
- amountRequired
- Amount with up to 2 decimals, e.g. "49.00".
- chainOptional
- base, arbitrum, polygon, optimism, ethereum or bsc. Omit to let the payer choose.
- tokenOptional
- USDC (default). USDT on Ethereum only.
- themeOptional
- light, dark or auto (default).
- langOptional
- en (default) or es.
States
- pending
- Waiting for payment.
- confirming
- Transfer seen; waiting for confirmations (x/N).
- paid
- Confirmed on-chain. Fires stabletally:paid.
- expired
- No payment in time (30 min).
Confirmations per network in Chains & confirmations.
Events
js
document.querySelector('stabletally-pay')
.addEventListener('stabletally:paid', (e) => {
// e.detail: { intentId, reference, txHash, chainId, amountRaw }
// Confirm server-side: GET https://api.stabletally.com/v1/pay/intents/<intentId>
});Always confirm on your server with GET /v1/pay/intents/:id before fulfilling.