Skip to main content

Express demo

The Express demo uses Afterglow Sessions to show a complete server-rendered ticket checkout. Express validates the reservation, creates the order, and redirects to the hosted checkout URL returned by Inttegro.

About the app

Afterglow Sessions gives guests a straightforward way to discover an event, reserve a ticket, and continue to payment. The price and fulfillment promise stay clear from the event page through checkout.

For the organizer, it provides a direct sales journey that can live alongside the rest of the event website. Reservations become payable orders without the team having to assemble a separate payment experience.

Start with MCP

Connect your MCP client and ask MCP to adapt this ticket flow to your Express application. It can identify the API operations, trust boundaries, and tests your integration needs.

What it demonstrates

  • An Express 5 POST handler with explicit validation and safe errors
  • Typed order construction with the Inttegro TypeScript SDK
  • A server-owned API key and idempotency key for the checkout attempt
  • A 303 redirect to the URL returned by Inttegro

Run the demo

Install a supported Node.js release, provide the server environment values, and run the development server. The released README contains the exact install, run, build, and test commands.

Follow the integration

  1. src/checkout.ts constructs the finalized ticket order and selects the hosted URL.
  2. src/app.ts owns request validation, safe failure handling, and the checkout redirect.

Production boundary

Keep the API key in the Node.js server environment. Bind the Inttegro order to your booking record and verify payment from server-side state before admitting the guest or issuing a ticket.

Continue