First Integration
Subscriptions
tiun.checkout({ productId: 'YOUR_PRODUCT_ID' });Time-based billing
tiun.start();What do you want to build?
Last updated
Was this helpful?
After installing the SDK, the next step is to connect your product to your app. The method you call depends on your product type.
Call tiun.checkout() with the product ID you want the user to subscribe to:
tiun.checkout({ productId: 'YOUR_PRODUCT_ID' });Attach this to any user interaction — a button click, link, or card. tiun opens the checkout overlay and handles payment, authentication, and access from there.
Call tiun.start() to open the connect overlay where the user links a payment method:
tiun.start();Once connected, tiun starts a billing session and your app receives paywall events to control access.
You can find your product ID in the tiun.business dashboard under Products. See Managing products for details.
Last updated
Was this helpful?
Was this helpful?