JavaScript SDK usage

Once the SDK is installed you can start working with the client.

Configuring

import {
  ConvergeSdk,
  TrackingActivityNames,
  ConvergeSdkLogEventLevel,
} from "@seeka-labs/converge-core";

const converge = new ConvergeSdk({
  key: "(public key)",
  organisationId: "(Organisation ID)",
  debug: {
    isEnabled: true,
    minimumLevel: ConvergeSdkLogEventLevel.Verbose,
  },
  tracking: {
    defaults: { currencyCode: "USD" },
  },
});

Interacting

View the method reference for a full list of methods.