API-first pattern
Best when your backend orchestrates payment logic.
Frontend-first pattern
Best when you want rapid UX iteration first.
CLI-assisted pattern
Best for scripted demos and local validation.
Integration decision tree
Pattern 1: API-first
Implement key generation and wallet setup
Use
/api/keys and persist secrets in your secure key store.Pattern 2: Frontend-first
Mirror each UI action to API endpoint
Attach each frontend event to one backend endpoint and audit payload contracts.
Pattern 3: Hybrid (recommended for teams)
- Product flow in frontend
- Deterministic logic in backend API
- CLI scripts for support, QA, and incident reproduction
