How pratiksinha-rzp/paymentsintegrationstudio works
Payments Integration Studio lets users define reusable API scenarios, configure their steps, run them with credentials, and inspect recorded executions; it also supports standalone API and webhook replay. The frontend proxies selected actions to the Go API, while the orchestrator coordinates scenario steps and replay, and execution persistence records request and response results. The tree also shows scenario, execution, replay, webhook, settings, and credential-related capabilities. Evidence is limited to the supplied excerpts and source index; unsampled implementation details and some wiring are therefore omitted.
Main entry points: main.go HTTP server · service.go Run coordinator · client.go HTTP client · route.ts API replay proxy
Components 22
Frontend
- Scenario screens
frontend/src/app/scenarios - Execution screens
frontend/src/app/executions - API replay page
frontend/src/app/api-replay/page.tsx - Webhook page
frontend/src/app/webhooks/page.tsx - Scenario run proxy
frontend/src/app/api/scenarios/run/route.ts - API replay proxy
frontend/src/app/api/replay/route.ts - Webhook replay proxy
frontend/src/app/api/webhooks/replay/route.ts
Scenario management
- Scenario endpoints
backend/internal/scenario/handler.go - Scenario logic
backend/internal/scenario/service.go - Scenario storage
backend/internal/scenario/repository.go
Execution and replay
- Run coordinator
backend/internal/orchestrator/service.go - Run endpoint
backend/internal/orchestrator/handler.go - API replay logic
backend/internal/replay/service.go - Webhook replay logic
backend/internal/replay/webhook.go - Execution endpoints
backend/internal/execution/handler.go - Execution records
backend/internal/execution/repository.go - HTTP client
backend/pkg/httpclient/client.go
Backend API
- HTTP server
backend/main.go
Other components
- Engineer
- PostgreSQL
- Payment API
- Webhook target
Connections 27
- Engineer → Scenario screens: defines scenarios
- Engineer → Execution screens: reviews runs
- Engineer → API replay page: starts replay
- Engineer → Webhook page: configures replay
- Scenario screens → Scenario endpoints: manages scenarios
- Execution screens → Execution endpoints: views executions
- API replay page → API replay proxy: posts request
frontend/src/app/api-replay/page.tsx - API replay proxy → HTTP server: forwards replay
frontend/src/app/api/replay/route.ts - Webhook page → Webhook replay proxy: starts replay
- Webhook replay proxy → HTTP server: forwards replay
frontend/src/app/api/webhooks/replay/route.ts - Scenario run proxy → HTTP server: creates execution
frontend/src/app/api/scenarios/run/route.ts - HTTP server → Scenario endpoints: routes requests
backend/main.go - HTTP server → Execution endpoints: routes requests
backend/main.go - HTTP server → Run endpoint: routes run
backend/main.go - Scenario endpoints → Scenario logic: calls logic
backend/internal/scenario/handler.go - Scenario logic → Scenario storage: uses storage
- Run endpoint → Run coordinator: starts run
- Run coordinator → Scenario logic: loads steps
backend/internal/orchestrator/service.go - Run coordinator → API replay logic: replays steps
backend/internal/orchestrator/service.go - Run coordinator → Execution endpoints: records run
- API replay proxy → API replay logic: requests replay
- Webhook replay proxy → Webhook replay logic: requests replay
- API replay logic → HTTP client: sends request
backend/internal/replay/service.go - HTTP client → Payment API: calls API
backend/pkg/httpclient/client.go - Webhook replay logic → HTTP client: sends webhook
- HTTP client → Webhook target: calls target
- Execution records → PostgreSQL: reads and writes
backend/internal/execution/repository.go