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
- Load the SDK from the embed address
- Server gets a start token (secret key stays on the server)
- Open the try-on frame
- Page reports ready
- Session started
- Session ended