Local development

Local development and demos

Clone the existing repository and use Node 24/25 and pnpm 10.25.0. Install packages without enabling secret-bearing lifecycle tooling:

git clone https://github.com/anumukul/WhitePay.git
cd WhitePay
pnpm install --frozen-lockfile --ignore-scripts
pnpm --filter @whitepay/docs test
pnpm --filter @whitepay/docs build
pnpm --filter @whitepay/docs dev

Docs serve at http://localhost:3400. Building them produces a static apps/docs/out export; that build command does not deploy it. The docs tests compile the literal snippets against the published SDK versions, check planned pages/internal links and verify testnet limitations/evidence text. Shell examples are syntax-checked only.

For the API, use the dedicated local PostgreSQL helper and the existing Step 05 runbook. Follow the Step 06 relayer, Step 07 worker and Step 13 stack runbooks rather than pointing tests at a real database or enabling a signer accidentally.

The independent SaaS README covers credit purchase/consumption and its customer ownership model. The shop README covers download entitlements. Configure separate merchant credentials, prices, databases and customer sessions. Their browser tests use controlled settlement receipts, not new live broadcasts.

No checkout can execute from docs alone: a configured API, funded operator, customer authorization and separately reviewed execution are required. New live payments, public hosting and external webhook delivery require specific approval.