nl_tokens: Returns a { @link Ext . data . Store } instance of all products available to purchase .
pl_tokens: function ( config ) { if ( ! config . success ) { Ext . Logger . error ( 'You must specify a `success` callback for `#getProducts` to work.' ) ; return false ; } if ( ! config . failure ) { Ext . Logger . error ( 'You must specify a `failure` callback for `#getProducts` to work.' ) ; return false ; } Ext . device . Communicator . <mask> ( { command : 'Purchase#getProducts' , productInfos : JSON . stringify ( config . productInfos ) , callbacks : { success : function ( products ) { var store = Ext . create ( 'Ext.data.Store' , { model : 'Ext.device.Purchases.Product' , data : products } ) ; config . success . call ( config . scope || this , store ) ; } , failure : config . failure } , scope : config . scope || this } ) ; }