sdk-integration
Installation
SKILL.md
SDK Integration
Add SolvaPay to an existing TypeScript / JavaScript app via @solvapay/* packages.
Guardrails
- Never expose
SOLVAPAY_SECRET_KEYto client code or public env vars. - Never build custom card collection if hosted checkout satisfies requirements.
- Always prefer official SolvaPay SDK helpers over ad-hoc raw HTTP calls.
- Always confirm product and plan references exist before wiring UI.
- Always keep paywall checks server-side or tool-handler-side.
- Always emit a runnable sandbox verification artifact before handoff — a
curlblock or test script covering happy path (200) and failure path (402 withcheckoutUrl). Prose summaries alone do not satisfy this guardrail. - Never treat UI unlock state as authoritative without server-side checks.