FastAPI demo
The FastAPI demo pairs an API-first backend with the Afterglow Sessions ticket experience. The visible ticket, server-side order, price, and fulfillment promise tell one consistent story.
About the app
Afterglow Sessions is an event-ticket experience built around a simple promise: the ticket a guest chooses is the ticket they pay for and receive. Guests can review the event and reserve their place without navigating a disconnected set of forms.
For the organizer, the app creates a direct route from event discovery to paid attendance. Its API-first shape also leaves room for the same ticket flow to serve a website, mobile client, or another sales surface.
Connect your MCP client and ask MCP to adapt this ticket flow to your FastAPI application. It can produce a scoped API, security, and test plan before you begin implementation.
What it demonstrates
- A FastAPI endpoint that validates a ticket reservation before creating an order
- Typed order construction with the Inttegro Python SDK
- Server-held credentials, request correlation, and bounded error messages
- A
303redirect to Inttegro Checkout
Run the demo
Create a Python virtual environment, install the pinned development requirements, and run the Uvicorn application. The released README contains the exact commands and focused pytest check.
Follow the integration
app/checkout.pyconstructs the typed order and keeps SDK error details at the server boundary.app/main.pyconnects the page, validation, correlation, and redirect flow.
Production boundary
Persist your own reservation and the Inttegro order ID together. Treat the browser return as navigation, then verify payment server-side before issuing the ticket.