29 lines
1.1 KiB
Markdown
29 lines
1.1 KiB
Markdown
|
|
## openpayments-mock
|
||
|
|
|
||
|
|
Tiny Go HTTP server that mimics the Open Payments (PSD2/BerlinGroup) aggregator for Shiny's acceptance tests. Consumed by `acctest`'s `banking-suite` via the image published from this repo's CI.
|
||
|
|
|
||
|
|
## Shared Documentation
|
||
|
|
|
||
|
|
@../docs/claude/architecture.md
|
||
|
|
@../docs/claude/go-services.md
|
||
|
|
@../docs/claude/conventions.md
|
||
|
|
@../docs/claude/cicd.md
|
||
|
|
|
||
|
|
## Service-Specific Information
|
||
|
|
|
||
|
|
### Purpose
|
||
|
|
|
||
|
|
Stand-in for the real Open Payments aggregator. Not safe for anything but tests — state is entirely in-memory, there are no authentication checks, and admin endpoints let the acctest suite force deterministic transitions (payment status, basket status, transaction seeding, consent expiry).
|
||
|
|
|
||
|
|
### Port
|
||
|
|
|
||
|
|
8080 (matching production aggregator convention; acctest reaches it via cluster DNS `openpayments-mock:8080`).
|
||
|
|
|
||
|
|
### Not deployed to staging/prod
|
||
|
|
|
||
|
|
CI builds + publishes the image but does not run `deploy` — the mock is test-only infrastructure. acctest's `k8s/infra/base/openpayments-mock.yaml` references the published image.
|
||
|
|
|
||
|
|
### Endpoints
|
||
|
|
|
||
|
|
See `README.md` for the full endpoint list.
|