Payment Codes SDK Playground

Live-test payment code methods through the real local SDK wired to the facilitator.

create
batch
status
claim-link
redeem
cancel
pay-request
list-owner
generatePaymentCode

generatePaymentCode

Create a single code or claim link using the current escrow or vault flow.

Create a private shareable claim flow instead of a visible code.

SDK snippet

Copy this call into docs, tests, or examples.

const result = await createPaymentCode(config, {
  signer,
  amount: 5000000n,
  network: 'base',
  claimLink: false,
  ttlSeconds: 86400,
  description: undefined,
})

Execution output

Status, facilitator response, and generated metadata.

Run a method to inspect the live response here.
    x402 API Marketplace - Monetize APIs with x402 Payments