     trans =
       uuid       : t.uuid[0]
       status     : t.status[0]
-      amount     : parseInt t.amount_in_cents[0]['_'], 10
-      tax        : parseInt t.tax_in_cents[0]['_'], 10
+      amount     : parseInt t.amount_in_cents[0]._, 10
+      tax        : parseInt t.tax_in_cents[0]._, 10
       currency   : t.currency[0]
-      datetime   : t.created_at[0]['_']
-      refundable : t.refundable[0]['_']
+      datetime   : t.created_at[0]._
+      refundable : t.refundable[0]._
       source     : t.source[0]
 
-    trans.invoice = t.invoice[0]['$']['href']  if t.invoice
+    trans.invoice = t.invoice[0].$.href  if t.invoice
 
     if trans.status in ['success', 'void']
       billing          = t.details[0].account[0].billing_info[0]

    if operation.indexOf('per_page') == -1
      operation += "#{if operation.indexOf('?') > -1 then '&' else '?'}per_page=50"

    console.log operation

    # Collect all GET responses before calling CB
    allData = []
    collect = (err, result, nextUrl)->


        <first_name>#{data.cardFirstName}</first_name>
        <last_name>#{data.cardLastName}</last_name>
        <address1>#{data.address}</address1>
        #{if data.city then #{"<state>#{data.city}</state>"} else ''}
        #{if data.state then #{"<state>#{data.state}</state>"} else ''}
        <zip>#{data.zip}</zip>
        <country>#{data.country}</country>

        <ip_address>#{data.ipAddress}</ip_address>
