 
       delegate.hasTarget this, 'payment method', (err, hasTarget) =>
         return callback err  if err
-        return callback message: 'Access denied!'  unless hasTarget
+        return callback new KodingError 'Access denied!'  unless hasTarget
 
         JSession.one clientId: client.sessionToken, (err, session) =>
           return callback err  if err

        callback null, paymentMethod

  @create = secure (client, formData, callback) ->
    {delegate} = client.connection

    @createPaymentMethod client, formData, (err, paymentMethod) ->
      return callback err  if err

# coffeelint: disable=no_implicit_braces
{ Module, Relationship } = require 'jraphical'
KodingError              = require '../../error'

module.exports = class JPaymentMethod extends Module

  { secure, dash, signature } = require 'bongo'
  { extend } = require 'underscore'
  { v4: createId } = require 'node-uuid'

  recurly = require 'koding-payment'
