Skip to content

Instantly share code, notes, and snippets.

@captaincole
Created February 24, 2018 04:44
Show Gist options
  • Select an option

  • Save captaincole/baf8ed0a4f9b6d542b85505738dc615e to your computer and use it in GitHub Desktop.

Select an option

Save captaincole/baf8ed0a4f9b6d542b85505738dc615e to your computer and use it in GitHub Desktop.
// Fired when a purchase has been approved by the store
this.store.when(productId).approved()
// Fired when a purchase is registered with the store
this.store.when(productId).registered()
// Fired if a purchase is updated
this.store.when(productId).updated()
// If the user cancels a purchase
this.store.when(productId).cancelled()
// Error handling
this.store.error()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment