 
   @deleteAccount = (client, callback)->
     accountId = getAccountId client
-    url = "/payments/customers/#{accountId}"
+    url = "#{socialProxyUrl}/payments/customers/#{accountId}"
 
     deleteReq url, {}, callback
 

          return callback err  if err

          data.accountId = getAccountId client
          url = "/payments/subscribe"

          post url, data, (err, response)->
            callback err, response


  @subscriptions = (client, data, callback)->
    data.accountId = getAccountId client
    url = "#{socialProxyUrl}/payments/subscriptions?account_id=#{data.accountId}"

    get url, data, callback

  @invoices = secure (client, data, callback)->
    data.accountId = getAccountId client
    url = "#{socialProxyUrl}/payments/invoices/#{data.accountId}"

    get url, data, callback

  @creditCard = secure (client, data, callback)->
    data.accountId = getAccountId client
    url = "#{socialProxyUrl}/payments/creditcard/#{data.accountId}"

    get url, data, callback

