Skip to content

Instantly share code, notes, and snippets.

@boertel
Created October 3, 2013 16:53
Show Gist options
  • Save boertel/6813093 to your computer and use it in GitHub Desktop.
Save boertel/6813093 to your computer and use it in GitHub Desktop.
Custom notification
window.ptReady = window.ptReady || [];
window.ptReady.push(function () {
PT.event.bind("loyalty.earned", function (message) {
// message.activities : array of activities
// message.points : sum of points for each activities
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment