Skip to main content
This method initializes Smile UI with information about the loyalty program to display and the currently logged in customer. This method must be called before you can interact with any other methods.
If you’re loading the Smile UI script asynchronously, you should wrap your initialization code within a loaded event to ensure it doesn’t encounter an error due to the script not yet being present on the page.

Parameters

object
required

Returns

This method does not return a value. To detect when initialization is complete, use SmileUI.ready().