Loyalty & Rewards - Javascript API
Launcher JavaScript API
The Launcher JS API exposes the following methods to the global object: StampedFn
. You can use them to control your Launcher programmatically.
StampedFn.toggleRewardsModal();
Call this method to open/close the Launcher. Additional configuration methods must be called in a separate string or object.
StampedFn.loadLauncherView('view-referrals-email');
Call this method to load the "Referrals" card view.
StampedFn.loadLauncherView('view-spendings');
Call this method to load the "Sendings" card view.
StampedFn.loadLauncherView('view-earnings');
Call this method to load the "Earnings" card view.
StampedFn.loadLauncherView('view-your-rewards');
Call this method to load the "Your Rewards" card view.
StampedFn.loadLauncherView('view-your-rewards');
Call this method to load the "Your Rewards" card view.