Installation
1
npm install @tiun/sdkpnpm add @tiun/sdkyarn add @tiun/sdk2
import { tiun } from '@tiun/sdk';
tiun.init({
snippetId: 'YOUR_SNIPPET_ID',
language: 'en', // set to your site's language
});Last updated
Was this helpful?
Install @tiun/sdk and initialize it with your snippet ID. You can find your snippet ID in the tiun.business dashboard.
Install the SDK
npm install @tiun/sdkpnpm add @tiun/sdkyarn add @tiun/sdkInitialize the SDK
Import tiun and call init once at startup.
import { tiun } from '@tiun/sdk';
tiun.init({
snippetId: 'YOUR_SNIPPET_ID',
language: 'en', // set to your site's language
});That's it — the SDK loads what it needs automatically. Continue with First integration to create a product, open checkout, and handle events.
Last updated
Was this helpful?
Was this helpful?