     JPaymentProduct = require './product'
 
     planCodes = Object.keys quantities
-    productSelector = planCode: $in: planCodes
+    productSelector = { planCode: { $in: planCodes } }
 
     for planCode in planCodes
       quantities[planCode] = +quantities[planCode]


    targetOptions ?= {}
    targetOptions.options ?= {}
    targetOptions.options.sort ?= sortWeight: 1

    @fetchProducts selector, { options, targetOptions }, callback

  @removeByCode$ = permit 'manage products',
    success: (client, planCode, callback) -> @removeByCode planCode, callback

  # coffeelint: disable=no_implicit_braces
  remove: (callback) ->
    { planCode } = this
    super (err) ->
