Cloth Try-on integration example

A shop page that embeds Cloth Try-on: the server asks for a start token with its secret key, and the page opens the try-on frame with a publishable key.

Try-on frame

Waiting for a publishable key.

Publishable key

A publishable key is safe in a page. It only works on the domains the company allows.

Steps

  1. Load the SDK from the embed address
  2. Server gets a start token (secret key stays on the server)
  3. Open the try-on frame
  4. Page reports ready
  5. Session started
  6. Session ended

Events