Topolo Pay
Payment worker handling orders, webhooks, admin APIs, and static-asset-backed application behavior.
Documentation Map
What It Is
Payment worker handling orders, webhooks, admin APIs, and static-asset-backed application behavior.
Architecture
Owners: commerce
Source repos:
Dependencies: topolo-auth, topolo-nexus, topolo-p2p, applications-packages
Repo shape
No repo surface entries were detected from the registered repo paths.
Runtime Surfaces
Hosts:
https://pay.topolo.app https://pay.topolo.app https://pay.stg.topolo.us No wrangler surface was discovered under the registered repo paths.
API Reference
Coverage: curated
Source: PlatformApplications/TopoloDocs/src/content/public/applications/pay.mdx
Source exists in repo: no
Canonical public and internal docs cover the payment worker, local webhook boundary, Nexus-routed outbound payment operations, the authenticated `GET /api/widget` live-workspace endpoint for TopoloOne, code-exchange-only admin SSO with in-memory access-token handling, and the worker-owned `/login` redirect that must run before the SPA fallback. TopoloPay resolves its environment-specific Auth service id from the Auth-owned service slug `topolo-pay` at runtime and exposes that identity through `GET /api/service-identity`; concrete production or staging `srv_*` ids are not app source constants. TopoloPay is also the only Stripe-mutating service for TopoloP2P settlement batches; P2P submits typed settlement requests to Pay and receives Pay status callbacks. Staging deploys build the admin bundle with `npm run build:admin:staging` and require explicit `AUTH_API_URL`, `NEXUS_GATEWAY_URL`, and `PAY_APP_URL` bindings so the staging worker fails closed instead of falling back to production hosts.
App API page: /reference/apps/topolo-pay
This system currently relies on a curated or README-derived contract surface instead of a source-controlled OpenAPI spec.
Auth and Permissions
Depends on Topolo Auth: yes
Service IDs:
srv_DJInUxp0dLLi API key scopes
View payment analytics
Resource pattern: none
View payment audit logs
Resource pattern: none
View customer payment profiles
Resource pattern: none
Manage customer payment methods
Resource pattern: none
View TopoloPay dashboards and operational summaries
Resource pattern: none
View invoices and billing
Resource pattern: none
Create and manage invoices
Resource pattern: none
View merchant payment profiles and configuration
Resource pattern: none
Manage merchant payment profiles and configuration
Resource pattern: none
Create payment or checkout sessions
Resource pattern: none
Read payment and charge state
Resource pattern: none
View payment reports and analytics
Resource pattern: none
View payment gateway settings
Resource pattern: none
Configure payment processing
Resource pattern: none
Accept TopoloP2P settlement batches
Resource pattern: none
View payment transactions
Resource pattern: none
Refund transactions
Resource pattern: none
Process payments and refunds
Resource pattern: none
View venue configuration
Resource pattern: none
Manage venue configuration
Resource pattern: none
Service permissions
analytics:read, audit:read, customers:read, customers:write, dashboard:read, invoices:read, invoices:write, merchants:read, merchants:write, payments:create, payments:read, reports:read, settings:read, settings:write, settlements:write, transactions:read, transactions:refund, transactions:write, venues:read, venues:write
Data Ownership
No storage bindings were derived from wrangler configuration.
Queues / Cron / Workflows
Queue bindings:
No queue bindings were detected.
Cron triggers
No cron triggers were detected.
Workflow signals
No explicit queue/workflow script or cron signal was discovered.
Environment Variables and Bindings
Environment variables:
No environment variables were derived from wrangler configuration.
All wrangler bindings
No bindings were derived from wrangler configuration.
Deployments
Deployment environments: default only or not declared
Routes: workers.dev or Pages-only delivery
Observability enabled: no explicit setting found
Failure Modes
- No wrangler.toml surface was discovered under the registered repo paths.
- The registered contract source is missing: PlatformApplications/TopoloDocs/src/content/public/applications/pay.mdx
- Neither OpenAPI nor README-derived interface detail was found.
Debugging Runbooks
Start with these entrypoints:
- PlatformApplications/TopoloDocs/src/content/public/applications/pay.mdx
Change Log / Verification
Lifecycle: active
Last verified: 2026-05-14
Any code change to this system is expected to update the canonical docs in PlatformApplications/TopoloDocs and refresh the verification date.