Success / Failure Handling
Successful checkout
Errors
Example
tiun.on('userChange', (data) => {
if (data.event === 'checkout' && data.user) {
applyEntitlements(data.user.productAccess);
}
});
tiun.on('error', (err) => {
showCheckoutError(err.message);
});Last updated
Was this helpful?