Documentation
Zap developer documentation
Integrate hosted checkout on your site. Shoppers pay in any coin NEAR Intents supports; you receive USDC and a signed webhook when a receipt is minted.
Three surfaces
| Surface | URL | Who |
|---|---|---|
| Marketing | / | Buyers and merchants evaluating Zap |
| Docs | /docs | Engineers integrating pay.js |
| Application | https://your-zap-host/dashboard | Merchants configuring shop, webhooks, products |
Integration path
- Register a shop in the dashboard.
- Add
pay.jsand<pay-button>to your site. - Confirm payments on your server with webhooks — never trust the browser alone.
Pages
- QuickstartEmbed checkout in a few minutes
- Pay buttonpay.js and <pay-button>
- Checkout eventspostMessage and DOM events
- WebhooksSigned server notifications
- HTTP APISessions, merchants, receipts
Local sandbox
pnpm install pnpm demo