Add the photo book editor to Wix
Add an HTML iframe element to your Wix page and point it at your Studio editor.
Velo page code listens for the message Studio sends when the customer finishes their book, including the Studio order reference your backend confirms after payment.
Wix example
// Wix Velo — in your page code (Page.js)
import { fetch } from 'wix-fetch';
$w.onReady(function() {
// Add an HTML iframe element in the editor named #studioFrame
// Set its src to: https://studio.prodigi.com/generator/embed/YOUR_MERCHANT_ID
$w('#studioFrame').onMessage((event) => {
const data = event.data;
if (data.type === 'ARTPLATFORM_BOOK_READY') {
// Handle the completed book
const { lineItem, order } = data.payload;
console.log('Book ready:', lineItem, order.reference);
// Add to your Wix store cart programmatically. After payment,
// your backend confirms order.reference with
// POST /v1/orders/{reference}/submit.
}
});
});