Embedded checkout supports payments natively. No additional payment setup is required — Stripe processes payments directly within the iframe.
How embeds work
Each embed is a self-contained<iframe> that loads a Treasure page. A small JavaScript snippet listens for postMessage events from the iframe and automatically adjusts the frame’s height to match its content, so you never end up with a fixed-height box or unwanted scrollbars.
Getting an embed code
All four embeds are generated from one place. From your event dashboard, open Social Media → Embed, then pick from Embed Type:
Treasure generates a snippet with your event’s slug (or your username for a Profile embed) and a unique iframe ID pre-filled. Copy it and paste it into your website’s HTML wherever you want the embed to appear.
Two options adjust the generated snippet:
- Tracking link — attach one of your tracking links so visits and purchases through this embed are attributed to it. Leave it as None for no attribution.
- For the Venue Map embed, a toggle controls whether vendors are shown on the embedded map. It is unavailable when your event’s vendor section is hidden.
The Venue Map embed only has something to show once your map is published. See Venue maps.
Ticket sales embed
Embed the full end-to-end checkout flow for a specific event. Visitors can browse ticket types, enter their details, and complete payment without leaving your site.my-event-2024 with your event’s slug and update the id and iframeId values accordingly.
Vendor application embed
Embed the vendor intake form so vendors can apply directly from your website. Applications submitted through the embed appear in your vendor dashboard just like applications submitted on Treasure.Venue map embed
Embed the interactive venue map so attendees and vendors can explore table layouts and booth locations on your website. Publishing a venue map requires a Starter or Pro plan.Host profile embed
Embed your Treasure host profile with a list of your upcoming events. This is useful for personal websites, creator pages, or anywhere you promote multiple events at once.your-username with your Treasure username and update the id and iframeId values to match.
Auto-resize behavior
The JavaScript snippet included with each embed listens formessage events posted by the iframe. When the Treasure page inside the iframe changes height (for example, as a multi-step checkout progresses), it sends a message containing the new height in pixels and the iframe’s ID. The script finds the matching iframe by ID and updates its style.height accordingly.
This means the iframe always fits its content exactly — no fixed heights, no internal scrollbars.
If you place multiple Treasure embeds on the same page, each iframe must have a unique
id value. The auto-resize script routes height updates by ID, so duplicate IDs will cause one iframe to override another’s height.