Skip to content

docs(headless-sdk): refactor implementation for zero-config AppKit#80

Merged
enesozturk merged 3 commits into
mainfrom
docs/headless-sdk-zero-config-appkit
Jul 9, 2026
Merged

docs(headless-sdk): refactor implementation for zero-config AppKit#80
enesozturk merged 3 commits into
mainfrom
docs/headless-sdk-zero-config-appkit

Conversation

@enesozturk

Copy link
Copy Markdown
Contributor

Refactors the PSP Headless SDK docs (shipped in #76) for the new zero-config AppKit setup landing in buyer-experience #956 + #972.

What's new in the SDK

Wallet connection is now zero-config — @walletconnect/pay-appkit owns the entire Reown AppKit wiring. A host installs only @walletconnect/pay-* and never touches @reown/*, wagmi, or viem:

  • React → one <PayAppKitProvider projectId metadata> from @walletconnect/pay-appkit/react.
  • JavaScript → one createPayAppKit({ projectId, metadata }) factory call.
  • The signer is now a single built-in call, createAppKitSigner(wallet) — no hand-wired signing strategies.

Changes

  • implementation.mdx (full rewrite, −194 net lines)
    • Install lists only @walletconnect/pay-*; the reown/wagmi/viem/query stack is transitive and unconfigured.
    • Removed the old manual createAppKit + WagmiAdapter/SolanaAdapter + module-scope singleton step, the hand-written lib/signer.ts step, and the obsolete @reown version-pinning note.
    • AppKit setup and checkout assembly are now <CodeGroup>s with React + JavaScript tabs.
    • Added a <Warning> that the proxy routes are a starting point (add auth/rate-limit/allowlist), and a two-card reference-apps group (headless-checkout + headless-checkout-vanilla).
  • packages-reference.mdx — documents createPayAppKit, createAppKitSigner, SUPPORTED_NETWORKS/EVM_NETWORKS, and the /react PayAppKitProvider / usePayAppKit / getPayAppKitInstance exports; reframes the raw signing strategies as low-level primitives.
  • how-it-works.mdxSigner seam row + wiring note point at createAppKitSigner / <PayAppKitProvider>.

Note

The documented JavaScript path uses createPayAppKit (the SDK's @reown-free factory). The headless-checkout-vanilla example still constructs AppKit with raw @reown/appkit and hasn't been migrated yet — worth aligning separately so the example matches the docs.

🤖 Generated with Claude Code

Wallet setup is now zero-config: the SDK owns the entire Reown AppKit
wiring, so a host installs only @walletconnect/pay-* and never touches
@reown/*, wagmi, or viem. Reflects buyer-experience PRs #956 + #972.

- implementation: replace manual createAppKit + Wagmi/Query provider
  wiring with <PayAppKitProvider> (React) / createPayAppKit (JS); drop
  the hand-written signer for the built-in createAppKitSigner; show the
  AppKit setup and checkout assembly as React/JavaScript CodeGroups.
- packages-reference: document createPayAppKit, createAppKitSigner,
  SUPPORTED_NETWORKS, and the /react PayAppKitProvider / usePayAppKit /
  getPayAppKitInstance exports.
- how-it-works: point the Signer seam at createAppKitSigner.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread payments/psps/headless-sdk/implementation.mdx Outdated
Comment thread payments/psps/headless-sdk/implementation.mdx Outdated
- install: keep pay-react on the same line as the other packages
- providers metadata url: simplify to https://example.com
- point example-app links (implementation + overview) to
  WalletConnect/walletconnect-pay-examples/tree/main/gateway

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread payments/psps/headless-sdk/how-it-works.mdx Outdated
createAppKitSigner is the single entrypoint for AppKit hosts; it wraps
pay-state's signing internally. The raw strategies are only the low-level
fallback for a custom, non-AppKit wallet — reword so they don't read as
two co-equal options.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@enesozturk enesozturk merged commit e0b850b into main Jul 9, 2026
3 checks passed
@enesozturk enesozturk deleted the docs/headless-sdk-zero-config-appkit branch July 9, 2026 14:29
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.

2 participants