Skip to content

docs(payments): add merchant logo specification for Merchant API#44

Open
riveign wants to merge 4 commits into
mainfrom
docs/merchant-api-logo-spec
Open

docs(payments): add merchant logo specification for Merchant API#44
riveign wants to merge 4 commits into
mainfrom
docs/merchant-api-logo-spec

Conversation

@riveign
Copy link
Copy Markdown
Contributor

@riveign riveign commented May 14, 2026

Summary

Adds a new guide documenting the merchant logo specification for the WalletConnect Pay Merchant API. Partners using POST /v1/merchants and PATCH /v1/merchants/{merchantId} now have a documented spec for the iconUrl field — recommended dimensions, aspect ratio, accepted formats, and file size — alongside context on where the logo actually renders in the buyer experience.

  • New page: payments/merchant-api/logo-specification.mdx
  • New nav group: Merchant API under the Payments tab, registered in both 2026-02-18 (stable) and 2026-02-19.preview versions of docs.json
  • Sections: intro · Where the logo appears (wallet payment sheet, confirmation screens, transaction history) · Specification table · Format guidance · Why square · Worked example (valid create-merchant request + CDN-import behaviour note)

Linear: WCPM-378

Scope

Scope limited to Merchant API docs. Point-of-Sale SDK pages (Flutter, Kotlin, point-of-sale, wallet-implementation) are untouched — the logoIcon field there is dApp/wallet metadata for WalletConnect pairing, which is a different concept from the WCP merchant logo stored via the Merchant API.

Validation rules are intentionally not documented yet. Server-side validation of dimensions/format is not shipping in this iteration. The page describes the recommended specification only — documenting 400 codes before the server enforces them would mislead partners. A follow-up will add a validation section once the server-side checks land in pay-merchant-experience.

Follow-ups

  • Cross-link from the API reference. The auto-generated iconUrl field description at /api-reference/2026-02-18/post-v1-merchants#body-icon-url-one-of-0 does not yet link to this guide. The fix belongs upstream in the MX OpenAPI source (pay-merchant-experience) — api/2026-02-18.json in this repo is regenerated by scripts/generate-specs.mjs from the upstream services, so any manual edit to the description here would be wiped on the next run. Will be filed as an engineering ticket against pay-merchant-experience to update the iconUrl field description with a reference to /payments/merchant-api/logo-specification.
  • Wallet screenshots. The "Where the logo appears" section currently uses prose. Adding rendered screenshots of the wallet payment sheet, confirmation screen, and transaction history (showing the logo in each surface) would make this guide significantly more useful — to be done in a follow-up PR once we have approved screenshots from design.
  • Validation section. Add once server-side validation ships under the sibling ticket in pay-merchant-experience.

Verification

  • mint broken-links → success, no broken links
  • mint dev → new page renders at /payments/merchant-api/logo-specification with all sections in the right order
  • Left-nav sidebar shows Logo specification under the new Merchant API group, slotted between Merchant Dashboard and WalletConnect Pay for Wallets in both version selectors

Test plan

  • Sidebar: confirm "Merchant API" group appears between "Merchant Dashboard" and "WalletConnect Pay for Wallets" in both version selectors
  • Page renders cleanly (intro, "Where the logo appears", spec table, format guidance, why square, worked example)
  • Cross-links to /api-reference/2026-02-18/post-v1-merchants and /api-reference/2026-02-18/patch-v1-merchants-merchantid resolve
  • No regressions elsewhere in the Payments tab

🤖 Generated with Claude Code

New page at payments/merchant-api/logo-specification.mdx documenting
dimensions, aspect ratio, formats, file size, and the 400 error codes
returned on server-side validation of the iconUrl field on POST/PATCH
/v1/merchants.

Adds a Merchant API group to the Payments tab in both versions of
docs.json (2026-02-18 + 2026-02-19.preview).

WCPM-378
@mintlify
Copy link
Copy Markdown

mintlify Bot commented May 14, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
wc-pay-docs 🟢 Ready View Preview May 14, 2026, 6:29 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

- Remove the validation section and 400 error code table — server-side
  validation has not shipped yet, so documenting the codes prematurely
  would mislead partners.
- Reframe the page as a guide: add a "Where the logo appears" section
  covering the wallet payment sheet, confirmation screens, and
  transaction history surfaces where the logo renders.
- Keep the spec table, format guidance, and "why square" rationale.
- Replace the dual valid/400 worked example with a single valid
  create-merchant example plus a note on the CDN import behaviour
  (logo is imported into Cloudflare Images; updating the source URL
  does not re-render until PATCH is called).

WCPM-378
…copy

- Add two reference screenshots under "Where the logo appears":
  - images/payments/merchant-logo/wallet-payment-sheet.png — wallet
    payment sheet with merchant logo as the visual anchor.
  - images/payments/merchant-logo/buyer-checkout.png — WalletConnect
    Pay buyer checkout page with the logo above the "Pay X to
    <Merchant>" headline.
- Split the section into "Wallet payment sheet" and "Buyer checkout"
  subsections, each with an italic "Reference image" caption.
- Drop the inaccurate "Transaction history" bullet — the logo is not
  currently surfaced in wallet transaction history.
- Drop the Cloudflare Images implementation detail from the intro and
  the worked-example closing paragraph. Keep the operationally-useful
  point that PATCH is required to change the rendered logo.

WCPM-378
…, constrain image sizes

- Replace wallet screenshot with the latest export.
- Rename "Wallet payment sheet" → "Wallet payment screen" (heading,
  body copy, alt text) and the corresponding image file to match.
- Add max-width to both reference images so they render at sensible
  sizes (wallet 320 px, buyer checkout 640 px) instead of full
  content-width.

WCPM-378
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