Skip to main content
Version: v1 (Current)

Registration with tickets and payment

Ticketed registration combines a v2/layout-engine registration form with Commerce catalog items. Ticket checkout holds registration data and inventory for both free and paid selections; fulfillment creates or updates the attendee once payment requirements are satisfied. This guide follows platform commit 7d7becc8f4317fe5949ff9f8b5ed97535c318b79 (PR #4490). Confirm deployment and resolve the acceptance gaps below before launching.

Start with Registration App Integration, payment/project settings and catalog configuration. This portal form flow is separate from the project REST registration API and attendee shop API. No live registration, login, order or payment was performed for this review.

Configure the ticket selector​

Use an active registration form with the layout engine. In its builder, add/select the ticket-select element and configure its ticket properties. The server uses the first such element in the graph, so configure one selector per form rather than assuming multiple independent selectors combine.

  • Label names the selector.
  • Tickets offered → All admission tickets uses an empty itemIds list: it offers eligible admission items, including qualifying admission items added later. Explicit IDs restrict the selection and can opt in session tickets. The configuration logic permits an explicit session-only list, but without an admission line there is no admission-ticket grant override: verify the form’s own attendee type/credential outcome and actual session enrollment before using it. Products/add-ons belong in the shop.
  • Registrants must choose a ticket defaults on. The effective minimum is at least one when required. Turning it off does not remove a separately configured positive Min tickets.
  • Show "Have a ticket code?" controls the ticket-code input; it is not the form's invite-code setting or a permission grant.
  • Min tickets and Max tickets apply to total selected quantity; each item's own limits still apply. Keep maximum at least the effective minimum. The property editor normalizes blank counts to null and other inputs to nonnegative integers; this helper alone does not establish valid cross-field limits.

Manage catalog opens the owning project catalog when the builder has the project/team context. Some helper text says Commerce → Catalog; the current dashboard page is Commerce → Tickets & products. A builder preview does not prove buyer eligibility, remaining stock or a provider connection.

Save the form through its supported builder workflow, reopen and inspect the selector, then exercise the actual portal route. Viewing/editing the form and managing Commerce resources have separate permissions. Use roles and permissions for the form's configured access and the Commerce setup guide for catalog/account actions; test actual allowed/denied roles in the deployment.

Ticket visibility and identity​

The catalog is filtered by selected/default attendee type, applicable item/service rules, status and explicit offered IDs. New registration has no attendee/group identity yet, so group restrictions cannot match that absent membership. An authenticated same-project update can supply the attendee context. Do not treat a visible ticket list as authorization to update a registrant or proof checkout will accept a quantity.

There are two distinct code channels:

PurposeCatalog lookupCheckout submission
Form invite/access gateSeparate form access flowaccess_code
Ticket visibility/eligibilityCatalog query access_codeticket_access_code

The live selector sends the applied ticket code under the catalog query's access_code, while keeping ticket_access_code in form submission state. The form invite code is independent. A code that opens the form does not automatically unlock a hidden ticket, and a ticket code does not establish form admission. Keep real codes out of public examples/logs.

Changing attendee type reloads available items and drops selected items that are no longer purchasable. The first increment can jump to an item's minimum, and decrement below its minimum removes it. The server remains authoritative for bounds/stock; do not rely on increment-button checks alone to prove a minimum jump fits every maximum.

Portal routes and selection payload​

The following paths belong to the configured portal host, not the v1 project API base. {form} is the form slug, and {order} is the returned order UUID.

Method/pathPurpose
GET /register/{form}Open the form
GET /register/{form}/catalogEligible ticket presentation
POST /register/{form}/checkoutValidate registration and ticket selection, hold data/stock, start checkout
GET /register/{form}/checkout/{order}Observe fulfillment/recovery state
POST /register/{form}Ordinary submission when no tickets are selected

Use the supported portal form renderer/session rather than calling a same-named REST route or substituting a reader key. Checkout and catalog/status have throttles; deployed rates and cross-origin/session behavior need environment verification. These routes depend on resolved portal/form context and the form/group/mode gates.

The selector writes the reserved _order_lines value; it is not an attendee-bound form field. An illustrative selection is:

{"_order_lines": [{"item_id": 123, "quantity": 1}]}

Include the form's required validated answers and distinct code fields as applicable; this is not a complete command or permission to create records. The standard submission helper JSON-encodes _order_lines before transport, including multipart submissions with uploads. Checkout accepts an array or decoded JSON string, filters nonpositive selections and validates the resulting selection. It does not trust browser prices.

With no selected tickets, the standard renderer removes _order_lines/ticket_access_code and uses ordinary submit. An optional selector with effective minimum zero can register that way. The checkout endpoint itself rejects an empty selection. New creation through the shared ordinary submission path rejects a positive required-ticket minimum; its existing-attendee update branch returns before that guard. Do not assume a required ticket universally forces an existing registrant to purchase again.

Held data, payment and fulfillment​

Checkout validates registration mode, graph answers and duplicate identity before opening the order. Update-only guests receive login_required; another project's actor is discarded. New checkout rejects an existing duplicate rather than turning a matching email into update authority. A later fulfillment duplicate check can still fail if another registration wins the race.

The held payload hashes passwords, omits password/confirmation twins and _order_lines, and stages uploads on a private disk. The order's registration payload is encrypted by its model and cleared on successful fulfillment. This does not establish a universal retention/cleanup guarantee: failed/unfulfilled data and staged upload cleanup need operator acceptance. Missing staged files can be dropped during restoration; verify the final attendee/assets rather than assuming a saved upload reached fulfillment. Keep private storage/runbooks separate.

For positive totals, Commerce checks the project's explicit charge-ready payment account. The response includes requires_payment, order_uuid, hold_expires_at, summary, status URL and payment configuration. HTTP 200 with success: true here means checkout started, not registration completed. The submission helper treats requires_payment as pending and opens Complete your registration. Preserve the order UUID securely; never log payment client secrets or tokens.

After payment confirmation, the panel displays Finishing your registration… and polls status. The browser does not create the attendee or grant tickets locally. Provider/webhook processing and fulfillment determine the outcome. Successful create fulfillment uses the first admission line's attendee-type/credential grant overrides; update fulfillment follows the existing registration update path. Verify actual profile fields, grants, credentials and session enrollment separately.

Free selections skip PaymentIntent creation and invoke fulfillment in the same request. They do not require a payment account in this service, but still require valid answers, eligibility, quantities and stock. The order opens with holds before synchronous fulfillment confirms bookings and clears the hold deadline on success; a zero price does not bypass inventory allocation.

Current free-completion gap: the shared completion response helper can return success: true with failed_fulfillment or refund_failed, and the standard submission helper can mark such a response submitted without checking its status. Isolated actual-method checks reproduce this. A success screen or success flag alone is insufficient: verify the order is fulfilled and the expected attendee exists. Have the platform owner resolve/accept this behavior before launch; no fix to the platform is included here.

Status, session and auto-login​

Registration status lookup requires either the checkout marker in the same browser session for that form/order, or the authenticated actor matching the order attendee. A UUID alone is insufficient. An update order already carries its existing attendee at checkout; a create order gains its attendee association through successful fulfillment. A new registrant may not yet have an attendee to authenticate as; keep the initiating session intact.

Status responseClient/organizer interpretation
fulfilledInspect completed registration response and actual attendee/entitlements
Pending/default branch, including paid and refund_failedpending: true; registration is not confirmed complete; investigate the explicit order status
failed_fulfillment / refundedUnsuccessful presentation; generic refund text is not proof of settled money
expired / cancelledUnsuccessful checkout; reconcile known payment/order before another purchase
404Missing order, wrong form, absent session marker or unauthorized actor; not proof no charge occurred

The panel polls every 1.5 seconds, shows a slow message after 20 seconds, and retries most network/non-404 errors without a bounded stop. A slow screen is not a confirmed receipt promise. When the slow message appears, preserve the known order reference and contact the commerce owner rather than treating unlimited polling as a recovery procedure or paying again. This is an operational handoff recommendation, not a backend timeout guarantee. The default backend status branch can also remain pending for unexpected states; preserve the explicit status.

Auto-login is a separate configured outcome. For eligible new, guest registrations with a portal/auth method enabling auto-login, the inline free branch can log in directly. After paid fulfillment, status can return a registration token and auto_login_url for the supported exchange. Existing actors are not automatically switched. Treat registration tokens as credentials; verify the actual authenticated session and redirect separately from attendee creation.

Back, reload and uncertain outcomes​

Back to form clears local pending-checkout state. It does not call a registration checkout cancellation endpoint or immediately release holds. This portal route group defines no registration DELETE checkout counterpart to the shop's cancellation route. Submitting again can create another order; avoid repeated starts while a prior payment is uncertain. Hold expiry depends on the backend job and provider state, with possible grace extension, not the displayed countdown. See hold behavior. A succeeded payment after released inventory can require reacquiring stock; if that fails, fulfillment can fail and initiate refund handling. An expired screen alone is not permission to retry a charge: the owner must first establish the prior order/payment outcome.

A provider return can include checkout_order; the renderer resumes polling that UUID and removes payment-return query parameters from the visible URL. That is client cleanup, not proof secrets never entered logs/history or that the browser session still authorizes status. Do not share return URLs containing payment parameters.

If a response is lost after order creation, this registration endpoint generated its UUID server-side and may not yet have stored the browser session marker. There is no documented client idempotency key or reliable guest lookup-by-email recovery here. Do not replay checkout blindly. Give the authorized commerce owner sanitized form/project identity, submission time and intended items so they can reconcile the order/provider state; never include passwords, resume tokens or payment secrets. A destroyed session or post-payment 404 has the same owner handoff; this review does not establish a safe automatic recovery/retry. Confirm an approved private recovery procedure before launch. Detailed recovery procedures remain private.

Troubleshooting and acceptance​

SymptomCheck / next step
No tickets offeredActive layout form, first ticket selector, offered IDs, service type, status/type/code eligibility and catalog context
Form code works but ticket absentForm invite versus ticket code, selected type and applicable catalog rules
409 duplicateExisting identity; use supported login/update behavior rather than bypassing it
422 selection/answer errors_order_lines and keyed field errors, effective minimum, per-item limits, stock and currency
503 sales unavailable / 502 payment start failureExplicit project account/readiness or provider issue; reconcile an existing order before retrying
Back to form but stock still heldLocal UI reset is not cancellation; owner verifies order/expiry/provider state
Free success screen without attendeeInspect explicit order status; known free-completion gap requires owner investigation
Paid but still finishing / status 404Same form/session marker, explicit state, provider/fulfillment progress and owner reconciliation
Registration complete but not logged inSeparate auto-login configuration/exchange, existing actor and actual session/redirect

Have the platform owner coordinate form/catalog administrators and representative new/update registrants in an approved environment. Verify optional/required tickets, distinct codes, duplicate races, uploads, free and paid outcomes, lost responses/session recovery, required consent, auto-login and final attendee/credential/session/receipt effects. The reviewed checkout path does not independently consume a project-Commerce terms-acceptance field; enforce required consent through a verified supported form/backend design rather than assuming project settings alone record it. Source review and local fixtures do not establish these outcomes.