 
     { userQuantity, resourceQuantity } = options.planOptions
 
-    if "custom-plan" in options.plan.tags
+    if 'custom-plan' in options.plan.tags
       unless userQuantity or resourceQuantity
-        return callback "User and resource quantities not specified"
+        return callback 'User and resource quantities not specified'
 
       options.feeAmount = calculateCustomPlanUnitAmount userQuantity, resourceQuantity
 
     subscribeToPlan.call this, client, options, callback
+
+

JResourcePlan = require './resourceplan'
JPaymentPack  = require './pack'
JPaymentFulfillmentNonce = require './nonce'

      dash queue, -> callback null, quantities

  @fetchProductCode = (plan, tags, callback) ->
    queryOptions =
      targetOptions :
        selector    : { tags }

    plan.fetchProducts null, queryOptions, (err, products) ->
      return callback err  if err
      unless products?.length
        return callback new KodingError 'no products found'

      callback null, products[0].planCode

