Install
Minimal integration
CryptoCheckout.init(config)
Returns a checkout instance.
string
required
Your merchant ID, from the dashboard.
string
required
Your on-chain payout address. The checkout verifies this against the blockchain before accepting payment and blocks on mismatch. Why this matters.
function
Called when the payment reaches finality. Receives the payment payload.UI only — fulfil orders from webhooks.
function
Called when a payment attempt fails.
function
Called when the customer dismisses the checkout.
function
Called when the checkout has loaded and completed verification.
Instance methods
method
Sets the amount to charge. Call before
open().method
Opens the checkout overlay.
method
Closes it programmatically.
method
Tears down the instance and removes its listeners. Call this in your framework’s cleanup hook.
Framework examples
Content Security Policy
If you set a CSP, allow our origin:Troubleshooting
The checkout opens but stays blank
The checkout opens but stays blank
Almost always CSP. Check the browser console for a
frame-src violation.The script doesn't execute at all
The script doesn't execute at all
A stale
integrity hash. The browser refuses to run a file whose hash doesn’t match the pin. Re-copy the snippet from your dashboard.It shows a configuration mismatch warning
It shows a configuration mismatch warning
Your
settlementAnchor doesn’t match what’s attested on-chain. Check Settings → Payout — most often the anchor in your HTML is an old address. This is the protection working. Verification.onPaymentConfirmed never fires
onPaymentConfirmed never fires
Expected if the customer closed the tab. The payment still completed — your webhook is the reliable signal. Finality.