   @createAccount = (account, callback) ->
     account.fetchUser (err, user) ->
       return callback err  if err
-      {nickname, firstName, lastName} = account.profile
-      data = {email: user.email, nickname, firstName, lastName}
+      { nickname, firstName, lastName } = account.profile
+      data = { email: user.email, nickname, firstName, lastName }
       recurly.setAccountDetailsByPaymentMethodId "user_#{account.getId()}", data, callback
 
   # Create group account on Recurly

      user  = buyer = "user_#{account.getId()}"
      buyer = "group_#{group.getId()}"  if data.chargeTo is 'group'

      charge = (subscription)->
        pay = new JPaymentPayment {
          buyer
          user

jraphical = require 'jraphical'
recurly   = require 'koding-payment'
KodingError = require '../../error'

module.exports = class JPaymentPayment extends jraphical.Module

  { secure, daisy, signature }      = require 'bongo'

  JUser                = require '../user'
  JGroup               = require '../group'
  JPaymentPlan         = require './index'
  JPaymentSubscription = require './subscription'
  { Relationship }       = require 'jraphical'

  @share()

