Skip to content

Integration guides

Build and operate the complete payment path from merchant registration to chain-confirmed fulfillment.

Use these guides when you are wiring a real product rather than inspecting one SDK function in isolation.

Start here

  1. Follow the complete payment flow to register a merchant, create a PaymentRef, connect a wallet, settle x402, and verify finality.
  2. Apply the production operations guide for secret storage, replay protection, recovery, reconciliation, and fulfillment policy.
  3. Use the API reference when you need exact function signatures and option fields.

Install once

Shell
npm install x402-paysdk

The package has three explicit trust-boundary entry points:

Entry pointRuntimeOwns
x402-paysdk/payBrowser, app, wallet hostOffer verification, typed-data signing, payment submission, receipt and tx checks
x402-paysdk/receiveReceiver app or trusted toolPaymentRef creation, listing, and revocation
x402-paysdk/merchantBackend onlyMerchant credentials, refs, orders, refunds, notify verification, and reconciliation

Never import x402-paysdk/merchant into an untrusted browser. It is designed to hold merchant API and notify credentials.