Skip to main content
This method formats a given amount of points for presentational purposes using the loyalty program’s points currency name/label and localization preferences.
This method requires points settings to be preloaded before use. Call Smile.preload() with pointsSettings before calling this method, or — if you initialize the JavaScript SDK yourself — include pointsSettings in the preload array during initialization.

Parameters

integer
required
An integer representing the amount of points to format.
object

Returns

This method returns a String.