Pewang.company — API hub
This deployment hosts USSD and Paystack (KES) endpoints. Each product has its own developer page and a JSON overview for tooling.
USSD (short codes)
Webhook (set once in your provider dashboard): https://pewang.company/api/ussd
POST with form fields sessionId, networkCode, serviceCode, phoneNumber, text. Response is plain text beginning with CON or END (built from lib/ussd/).
Developer docs (human): https://ussd.pewang.company
Machine contract (JSON): GET https://pewang.company/api/ussd (same path on this host: /api/ussd)
Repo: docs/DEVELOPER.md
Payments API (external backends)
Integration guide: /payments/developers — flows, HTTP errors, webhooks. Overview: /payments/docs or https://payment.pewang.company (payment host home rewrites to the same overview).
Machine index (JSON): GET /api/payments — routes, bodies, webhook path; env is for whoever operates the deployment.
Playground: /payments/test. Repo: docs/LOAN-APP-PAYMENTS-INTEGRATION.md, docs/PAYMENTS-API.md. Paystack docs: paystack.com/docs
Webhook path (register in Paystack for the host you call): /api/paystack/webhook on the same origin (e.g. https://pewang.company/api/paystack/webhook).
Local development
Run npm run dev and use the URL printed (e.g. http://localhost:3000 or :3001 if 3000 is busy). Same paths: /payments/docs, /api/payments, /api/paystack/webhook, /api/ussd.