           return callback err  if err
 
           data.accountId = getAccountId client
-          url = "/payments/subscribe"
+          url = "#{socialProxyUrl}/payments/subscribe"
 
           post url, data, (err, response)->
             callback err, response


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

    get url, data, callback

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

    get url, data, callback

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

    get url, data, callback



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

    deleteReq url, {}, callback

