checkout({ type: function (description, callback) { // PERFORM THE CHECKOUT HERE // @description matches the first argument to checkout },}, function (err) { console.error(err)})
Registering a generic handler
checkout.handlers.myHandler = function (description, callback) { // Same as Custom Handler}