No description
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Codeberg is the primary source; GitHub is a mirror. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
| client | ||
| cmd/server | ||
| docs | ||
| fpsevents | ||
| internal | ||
| .gitignore | ||
| CHANGELOG.md | ||
| go.mod | ||
| go.sum | ||
| index.md | ||
| mock-fps.code-workspace | ||
| PLAN.md | ||
| README.md | ||
| ROADMAP.md | ||
| task-plus.yml | ||
| Taskfile.yml | ||
mock-fps
A Go mock server simulating the Form3 Faster Payments Service (FPS) API. Returns realistic JSON:API responses with async lifecycle status transitions, stand-in mode, and webhook notifications.
Quick start
task build
task run
The server starts on :8080 by default.
Configuration
| Variable | Default | Description |
|---|---|---|
PORT |
8080 |
HTTP listen port |
LIFECYCLE_STEP_DELAY_MS |
500 |
Delay between status transitions |
WEBHOOK_WORKERS |
4 |
Concurrent webhook delivery workers |
WEBHOOK_BUFFER_SIZE |
1000 |
Webhook notification queue size |
API overview
All endpoints are under /v1 and follow JSON:API conventions (application/vnd.api+json).
- Payments —
POST/GET /v1/transaction/payments - Submissions —
POST/GET .../submissions - Admissions —
POST/GET/PATCH .../admissions - Returns —
POST/GET .../returnsand.../returns/{id}/submissions - Recalls —
POST/GET .../recalls,.../submissions,.../decisions - Reversals —
POST/GET .../reversalsand.../reversals/{id}/submissions - Subscriptions —
CRUD /v1/notification/subscriptions - Health —
GET /health - Admin —
GET/PUT /admin/standin(stand-in mode control)
Documentation
- FPS Events Reference — Complete inbound payment lifecycle, all possible outcomes, settlement cycles, stand-in, and reconciliation
Tasks
task build # Build binary
task run # Build and run
task fmt # Format Go source
task vet # Run go vet
task lint # Run golangci-lint
task test # Run tests with -race
task check # fmt + vet + test + clean
task clean # Remove build artifacts
Links
| Source (Codeberg) | https://codeberg.org/hum3/mock-fps |
| Mirror (GitHub) | https://github.com/drummonds/mock-fps |
License
See LICENSE.