PaybytokenDocs
Developer documentation

Start with one payment.

Create the order on your server, present checkout in your product, and fulfill only after a verified event.

Recommended pathAbout 10 min
  1. 1

    Create a sessionServer only

  2. 2

    Open checkoutCustomer browser

  3. 3

    Verify the eventYour webhook

Start from the business obligation.

Checkout is an attempt. Links, requests, and balances exist for longer-lived collection models. Choose the owner first, then the customer interface.

See how every payment resource fits together

The shortest path to a verified payment.

These boundaries stay the same for hosted, embedded, and custom checkout. Start here before choosing how much UI you want to own.

  1. 01

    Install the server SDK

    Keep the secret key in your server runtime.

    pnpm add @paybytoken/node
  2. 02

    Create a Checkout Session

    Send an authoritative amount or line items.

    checkoutSessions.create()
  3. 03

    Present checkout

    Redirect, mount the managed UI, or render your own.

    hosted · embedded · custom
  4. 04

    Verify the payment event

    Fulfill once after signature verification.

    payment_intent.succeeded

Go directly to the work in front of you.

Each guide starts with the required boundary, gives you the implementation path, and links to the relevant API contracts.

When you already know what you need.

Jump directly to resource contracts, packages, event payloads, and error behavior.

Need a working example?

See each checkout mode with a real test order.

Compare hosted, embedded, and custom integrations before choosing the surface for your product.

Open Playground
API Workbench

Full Explorer

Open in new tab