Checkout Integration Overview
Learn how to connect Fanfare experiences to your checkout flow, from admission to order completion.Overview
When a consumer is admitted through a Fanfare experience (queue, draw, or auction), they receive an admission token. This guide explains how to securely transition consumers from admission to checkout and complete their purchase. What you’ll learn:- Understanding the admission-to-checkout flow
- Working with admission tokens
- Handoff patterns for different platforms
- Completing the checkout cycle
Prerequisites
- Fanfare SDK integrated and working
- An existing checkout system
- Understanding of your e-commerce platform
The Checkout Flow
Understanding Admission Tokens
When a consumer is admitted (reaches the front of a queue, wins a draw, wins an auction), they receive an admission token. This token:- Proves they were legitimately admitted
- Has an expiration time (typically 10-30 minutes)
- Can be validated server-side
- Should only be used once
Token Lifecycle
Step 1: Detect Admission
When a consumer is admitted, the journey state changes:Step 2: Show Checkout Call-to-Action
Display a clear checkout action when admitted:Step 3: Pass Token to Checkout
Several patterns for passing the admission token to your checkout:URL Parameter (Simple)
Session Storage (Recommended)
SDK Handoff Module (Full Featured)
Use the built-in handoff module for secure token handling:Step 4: Validate Admission Server-Side
Before allowing checkout, validate the token with Fanfare:Step 5: Complete the Admission
After a successful order, mark the admission as complete:Integration Patterns
Pattern 1: Same-Site Checkout
When checkout is on the same domain:Pattern 2: External Checkout (Shopify, etc.)
When checkout is on a different domain:Pattern 3: Embedded Checkout
When checkout happens in an iframe/modal:Handling Edge Cases
Token Expiration During Checkout
Network Errors
Page Refresh
Checkout Success/Failure Handling
Success Flow
Failure Flow
Best Practices
1. Show Clear Timing
Always display remaining time prominently:2. Prevent Accidental Navigation
3. Validate Early
Validate the admission token as soon as the checkout page loads, not just on submit:What’s Next
- Cart Reservation - Hold inventory during checkout
- Payment Processing - Integrate payment providers
- Order Completion - Handle order webhooks
- Shopify - Shopify-specific integration