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
For event-specific embeds (ticket sales, vendor application, venue map), open your event dashboard and navigate to the relevant section. Look for the Get Embed Code button. Treasure generates a snippet with your event’s slug and a unique iframe ID pre-filled. For the host profile embed, go to your profile settings and select Get Embed Code. Copy the snippet and paste it into your website’s HTML wherever you want the embed to appear.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. Venue maps are available on Starter and Pro plans.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.