Skip to content

payment: stripe-go v82 Params.Metadata is deprecated at three call sites (SA1019, surfaced by golangci-lint v2.13.0) #834

Description

@sagarsuperuser

golangci-lint v2.13.0's staticcheck flags:

  • internal/api/adapters.go:1297
  • internal/payment/checkout.go:124
  • internal/payment/checkout.go:211

(stripe-go/v82.Params).Metadata is deprecated — the Metadata field should be set on the surrounding typed params struct instead. Money-path adjacent (checkout/payment): fix in its own PR under the playbook, with the three call sites audited together, then unpin CI's golangci-lint (pinned to v2.12.2 by the CI fix that surfaced this).

Found while an unrelated bench PR (#832) failed lint on files it never touched.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions