Lightweight, runnable examples demonstrating the Paywaz Public API and the Paywaz SDK.
- ✅ JavaScript samples use the SDK package name:
@paywaz/sdk - ✅ Node 20+ recommended for consistent execution
javascript/payments— create and fetch paymentsjavascript/webhooks-express— webhook receiver + signature verificationjavascript/webhooks-node— raw-body webhook receiver with secret rotation and replay protectionjavascript/nextjs-webhook— framework-specific webhook handlerjavascript/simple-checkout.js— minimal placeholder checkout flow
python/create-payment.py— create a payment (placeholder flow)
curl/basic-request.sh— simple request example for quick testing and debugging
From the repo root:
node -v
# copy env template (pick the right path for the sample you run)
cp .env.example .env
# run a sample (example: javascript/payments)
cd javascript/payments
npm install
npm run startRun these from the repo root to sanity-check the samples:
# Parse-check JavaScript samples
npm run lint
# Webhook signature unit tests (node:test)
npm test
# Alias for lint (no compilation required yet)
npm run build
# Run the payments sample (requires PAYWAZ_* env vars)
npm start- API Key (coming soon)
- Node.js 18+
- Python 3.10+
Coming soon:
- React example
- POS terminal integration demo
- Shopify & WooCommerce plugin samples
- Solana wallet request flow
- API Reference: https://github.com/hellopaywaz/paywaz-public-api
- Docs: https://github.com/hellopaywaz/paywaz-docs
- Website: https://paywaz.com
⚠ These samples are for demonstration only. Do not use in production without proper security hardening.
Paywaz.com LLC — Zero-Fee Crypto-Native Payments.