Skip to main content

SDK Reference

Complete API reference for the Marketfront SDK.

Overview

The SDK provides a consistent API across all platforms:

PlatformPackageMain Class
Web@gett/marketfrontMarketfrontClient
iOSGettMarketfrontMarketfrontView
Androidcom.gett:marketfrontMarketfrontView

Reference Sections

  • Client — Main client/view class with constructor and methods
  • Types — Configuration interfaces and data types
  • Events — Event payload type definitions

Constructor

import { MarketfrontClient } from '@gett/marketfront';

// Session token from your backend
const client = new MarketfrontClient({
sessionToken,
onOrderComplete: (order) => {
console.log('Order placed:', order.id);
},
});

Methods

MethodDescription
mount(target) / addToView()Display the marketfront
unmount() / removeFromView()Remove and cleanup