     JPaymentPlan.fetchPlanByCode @planCode, (err, plan) =>
       return callback err  if err
       payment.addUserCharge @userCode,
-        amount: (-1 * plan.feeMonthly * percent / 100)
+        amount: -1 * plan.feeMonthly * percent / 100
       , callback
 
   calculateRefund: (callback)->


module.exports = class JPaymentSubscription extends jraphical.Module

  {secure} = require 'bongo'
  JUser    = require '../user'
  JPayment = require './index'


    JPayment.invalidateCacheAndLoad this, selector, {forceRefresh, forceInterval}, callback

  @updateCache = (selector, callback)->
    JPayment.updateCache
      constructor   : this
      selector      : { paymentMethodId: selector.paymentMethodId }
