{
  "id": "ku_1ce4dcbb4407cdec4a43438903be827f",
  "version": 1,
  "domains": [
    "x402",
    "seller",
    "go"
  ],
  "insight": {
    "summary": "You built your Go seller on x402ResourceServer.ProcessPaymentRequest because its comment says it processes a payment end to end, and every call fails.",
    "detail": "The method was a stub in every Go release from v2.1.0. v2.30.0 removes it, so code that calls it stops compiling. Use VerifyPayment and SettlePayment, or the HTTP middleware.",
    "action": "Replace ProcessPaymentRequest with VerifyPayment then SettlePayment, or mount the HTTP payment middleware."
  },
  "context": {
    "languages": [
      "go"
    ],
    "frameworks": [
      "x402 go/v2"
    ],
    "pattern": "dead-api"
  },
  "evidence": {
    "confidence": 0.8,
    "confirmations": 1,
    "first_observed": "2026-11-04T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "Go x402 ProcessPaymentRequest always returns \"not implemented\"",
    "neomorphic:signature": {
      "surface": "x402",
      "provider": "x402-go",
      "code": "process-payment-request-stub",
      "versions": "removed in Go v2.30.0",
      "environment": "Go resource server",
      "key": "x402/x402-go/process-payment-request-stub"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Replace ProcessPaymentRequest with VerifyPayment then SettlePayment, or mount the HTTP payment middleware.",
      "snippet": {
        "lang": "go",
        "text": "verify, err := server.VerifyPayment(ctx, payload, requirements)\nif err != nil || !verify.IsValid { /* answer 402 */ }\n// serve the resource, then:\nsettle, err := server.SettlePayment(ctx, payload, requirements, nil)   // nil: no settlement overrides"
      }
    },
    "neomorphic:fixed_in": "Go v2.30.0",
    "neomorphic:sources": [
      {
        "kind": "issue",
        "url": "https://github.com/x402-foundation/x402/issues/4089",
        "observed_at": "2026-12-02",
        "note": "Go x402ResourceServer.ProcessPaymentRequest is an exported stub that always returns \"not implemented\"; closed 2026-11-02."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/x402-foundation/x402/pull/4096",
        "observed_at": "2026-12-02",
        "note": "Merged 2026-11-02: remove the stub; use VerifyPayment and SettlePayment, or the HTTP middleware."
      },
      {
        "kind": "release",
        "url": "https://pkg.go.dev/github.com/x402-foundation/x402/go/v2@v2.30.0",
        "observed_at": "2026-12-02",
        "note": "x402 Go module v2.30.0, tagged 2026-11-04: the first Go release whose tag contains the fix."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "seller",
    "neomorphic:observed_at": "2026-11-04",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
