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.

Call this method to open/close the Launcher. Additional configuration methods must be called in a separate string or object:

StampedFn.toggleRewardsModal();

To load the "Referrals" card view:

StampedFn.loadLauncherView('view-referrals-email');

To load the "Sendings" card view:

StampedFn.loadLauncherView('view-spendings');

To load the "Earnings" card view:

StampedFn.loadLauncherView('view-earnings');

To load the "Your Rewards" card view:

StampedFn.loadLauncherView('view-your-rewards');