Contract 4d1e0ad · updated 2026-11-11
Lissen Ticketing
GuidesCheckout

Hosted checkout

Send buyers to an organizer-branded payment page backed by the buyer plane

Hosted checkout is a Lissen-served payment page for a checkout session. It keeps the organizer's event page simple while the buyer sees the event summary, cart, payment fields and final delivery message in one place.

Send a buyer to the page

Create a checkout session on your server, then redirect or link the buyer to the response's url:

const created = await ticketing.createCheckoutSession({
  body: {
    line_items: [{ item_id: "itm_...", quantity: 2 }],
    return_url: "https://events.example.com/",
  },
  idempotencyKey: "checkout-creation-...",
});

// The URL includes the session credential in its fragment.
return Response.redirect(created.url, 303);

The fragment is read in the browser and removed from the address bar before the page retrieves the session. Do not copy the URL into server logs or replace it with hosted_url: hosted_url is the public page address without the buyer credential.

The page is available at https://tickets.lissen.com/checkout/{slug}. The organizer slug is selected by the session; it is not a request parameter you should let a buyer edit.

What the buyer sees

The page retrieves the session through the buyer plane and shows the event and venue beside each line, the quantity, the live quote and the expiry countdown. If the buyer changes a quantity, the whole cart is sent through the universal buyer update and the quote is refreshed by the engine. There is no Stripe-side cart.

If the cart is outside the event's ticket limits, the page says so in plain words and keeps Pay and Get tickets disabled until the cart fits.

For a non-zero quote, the buyer supplies an email and an optional name. The page fetches payment credentials only after the email is saved, then mounts the card fields in place. The page confirms the payment without navigating to a third-party checkout and polls the session until it is completed.

If the bank asks for a 3-D Secure check, the checkout reads the payment status directly even when the bank's page does not return. If it cannot confirm the outcome within five minutes, it asks the buyer to reopen checkout and check before trying to pay again.

For this payment state, a buyer Lissen recognises is offered their saved card in the card fields, and a buyer who types an address Lissen already knows is offered a code and then their saved card. The fields read back the selected card's details; see saved-card entry in the drop-in for how a buyer switches to another card. A buyer who wants neither pays as a guest, exactly as before.

For a zero-total quote, the page shows Get tickets after collecting the buyer email. It calls the buyer completion route without payment credentials, card fields, saved-card payment buttons, express wallets or wallet setup. The engine issues the order and tickets without a PaymentIntent. See zero-total checkout for retries and eligibility.

The terminal states are explicit:

  • Success: the page shows the purchased items and says that tickets are in the buyer's email. If return_url was supplied, it offers a link back to the organizer.
  • Expired: the hold ended before payment completed; the buyer can return to the event page and start a new session.
  • Payment refused: capacity was gone when payment arrived, or the order went past the event's ticket limits while the buyer paid. Nothing is issued; the payment is refunded in full automatically.
  • Still processing: if the engine has not resolved the session after the polling window, the page tells the buyer to watch their email rather than claiming a success or failure it cannot prove.

The page does not display a QR code or provide an order-history page. Email delivery is the ticket delivery surface.

Theming

Hosted checkout reads the organizer's branding record. The seven curated tokens are applied to the page and the card fields together:

TokenHosted checkout use
logo_urlOrganizer mark in the page header
brand_colorPrimary action and card-field primary colour
accent_colorSecondary text
background_colorPage background and card-field background
text_colorPage and card-field text
font_keyinter, system or manrope for both surfaces
corner_radiusPage controls and card-field radius

Unset tokens use neutral page defaults. The stored branding is all the hosted page reads: it is a link you send a buyer, so there is nowhere to pass anything else from. When you want the full appearance object — colours, fonts, radius, spacing, borders, shadows, button variants, input styles and per-part overrides — embed the drop-in checkout in your own page and pass it at mount. Per-event overrides and custom domains are not part of either.

Pay with Lissen takes the same tokens on both surfaces; only the chip of a recognised buyer and the Lissen mark keep Lissen's own colours.

The same component, embedded

Hosted checkout is the full-page instance of the drop-in component. If the purchase should finish on your own page rather than ours, mount that component instead — same cart, same quote, same payment ordering, same terminal states, with your page around it. See drop-in checkout.

Return URL and delivery

return_url is optional and is offered as a link after a successful completion or any terminal checkout state. It accepts HTTPS URLs or the registered lsn://checkout-return app callback; other schemes and callback suffixes are rejected on session creation and update. The component reads the session field for both hosted and embedded checkout. Payment confirmation stays on the hosted page. The engine's notification configuration sends the order confirmation and admission details to the buyer email saved on the session.

For a custom experience, use the buyer plane with the same session credential. It has the same cart authority, quote and payment ordering as hosted checkout.

On this page