MARCO Connect · SDK v2.10.2

Developer reference.

Code, SDK options and events. Merchants never need this.

Install

HTML
<div id="marco-connect"></div>
<script src="https://marco.melega.ai/widgets/marco-connect.v2.10.js" defer></script>
<script>
  window.addEventListener("load", function () {
    var marco = window.MarcoConnect.mount("#marco-connect", {
      application: "Your App",
      theme: "dark",
      size: "standard"
    });

    marco.on("passportResolved", function (e) {
      console.log("passport", e.passport.passportNumber);
    });
  });
</script>

Appearance

Themes
  • dark — Black
  • light — White
  • silver — Silver
  • blue — Blue
  • orange — Orange
  • forest — Forest
  • purple — Purple
  • gold — Gold
Sizes
  • compact — Compact
  • standard — Standard
  • full — Full width
  • navbar — Navbar
  • floating — Floating
  • icon — Icon

Installation flow

  1. 01
    Create application

    Name and website.

  2. 02
    Copy widget

    One block, generated for you.

  3. 03
    Paste on your page

    Where visitors sign in.

  4. 04
    Done

    Your visitors arrive recognised.

InstallMerchant setupChoose platformGenerate installationCopyDone

Verified continuously

Every badge reflects a live check of the MARCO runtime. Nothing here is decorative.

Last verification Never · Reports published by Melega Space.