lib/Ext/device/purchases/Sencha.js
function(config) {
        if (!config.callback) {
            Ext.Logger.error('You must specify a `callback` for `#canMakePayments` to work.');
            return false;
        }

        Ext.device.Communicator.send({
            command: 'Purchase#canMakePayments',
            callbacks: {
                callback: function(flag) {
                    config.callback.call(config.scope || this, flag);
                }
            },
            scope: config.scope || this
        });
    }
function(config) {
        if (!config.callback) {
            Ext.Logger.error('You must specify a `callback` for `#canMakePayments` to work.');
            return false;
        }

        Ext.device.Communicator.send({
            command: 'Purchase#canMakePayments',
            callbacks: {
                callback: function(flag) {
                    config.callback.call(config.scope || this, flag);
                }
            },
            scope: config.scope || this
        });
    }
Checks if the current user is able to make payments.

## Example

Ext.device.Purchases.canMakePayments({
callback: function(flag) {
console.log(flag ? 'Yup! :)' : 'Nope! :(');
}
});

@param {Object} config
@param {Function} config.callback
@param {Boolean} config.callback.flag whether current user is able to make payments.
@param {Object} config.scope