Skip to content

feat(ramps-controller): send MetaMask client identity on on-ramp fetches - #9963

Draft
amitabh94 wants to merge 1 commit into
mainfrom
feat/ub2-client-identity-headers
Draft

feat(ramps-controller): send MetaMask client identity on on-ramp fetches#9963
amitabh94 wants to merge 1 commit into
mainfrom
feat/ub2-client-identity-headers

Conversation

@amitabh94

Copy link
Copy Markdown
Contributor

Explanation

UB2 catalog gating needs product, app SemVer, and RC vs store on every on-ramp request. Other product APIs already send x-metamask-clientproduct / x-metamask-clientversion; Client Config uses environment as a query. This PR adds optional constructor fields on RampsService and TransakService and sends all three as headers.

controller stays the ramps-controller package version (JWT). clientEnvironment is a flag dimension (prod / rc / exp / dev / …), not an API-host switch.

NeoBankService / WalletRegistrationService are not on main yet. Those callers should get the same options when they land.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Made with Cursor

Enable catalog gating by attaching optional product, app version, and RFFC environment headers without overloading the controller query param.

Co-authored-by: Cursor <cursoragent@cursor.com>
@amitabh94 amitabh94 self-assigned this Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant