Charge for time-based sessions
1. Create a time-based product
2. Install and initialize the SDK
import { tiun } from '@tiun/sdk';
tiun.init({
snippetId: 'YOUR_SNIPPET_ID',
language: 'en',
});3. Start with the paywall visible
4. Listen for paywall events
5. Start a billing session
6. Manage content on route changes
7. Go live
Full example
Last updated
Was this helpful?