Files
zeekay 29563d0e5f fix(provider): deregister marqeta/plaid lying stubs (honest Capabilities + doc.go)
Both adapters self-registered when their env vars were set, then returned
ErrNotSupported on every call. Routing logic could not distinguish a stub
from a real adapter — dangerous for payment routing.

Per yesterday's audit:
- Capabilities() now returns empty PaymentTypes/Currencies/Features/
  Countries and Status="placeholder" on both. Routers must see them
  as supporting nothing.
- Every method returns wrapped ErrNotSupported with explicit
  "<provider> adapter not implemented (<method>) — see doc.go" so
  the error trail is honest.
- doc.go starts with the required placeholder line pointing at the
  provider's official docs URL.
- cmd/treasuryd/main.go no longer registers either provider; instead
  it logs a warning when the env var is set, pointing at the doc.go
  TODO. Env vars stay in the docs so a future real implementation
  drops in unchanged. Imports kept under blank-import to preserve the
  stable package path.
2026-05-24 18:58:34 -07:00

10 lines
536 B
Go

// Package plaid is a placeholder adapter. Not production-ready. See https://plaid.com/docs/api/.
//
// No method of the Provider interface is implemented. Every call returns
// provider.ErrNotSupported wrapped with a "not implemented" message. The
// package is kept compiled so the import path remains stable and a real
// implementation can drop into the same path in a follow-up. The env-gated
// registration in cmd/treasuryd/main.go has been replaced with a warning
// log line; no fake provider is ever registered.
package plaid