Website Checkout
Hosted checkout + customer portal for web apps. Server creates the checkout session, browser redirects to SolvaPay, return URL handler refreshes access state from server truth.
Quick Start
- Read guide.md — stack detection, guardrails, handoff output.
- Run
npx -y solvapay@latest initto configureSOLVAPAY_SECRET_KEYand install base SDK packages. - Follow the matching stack guide:
- nextjs/guide.md — fully supported
- react/guide.md — partial guidance (you still need a backend)
For advanced flows (usage metering, Express, MCP, custom webhooks) use the sdk-integration skill instead.
Guardrails
- Never build custom card forms when hosted checkout is acceptable.
- Never expose
SOLVAPAY_SECRET_KEYin client code. - Always keep checkout session creation on the server.
- Always verify access state from server truth after returning from checkout.
- Always use SolvaPay naming in user-facing text.