             trans =
               uuid      : t.uuid[0]
               status    : t.status[0]
-              amount    : parseInt t.amount_in_cents[0]['_']
-              tax       : parseInt t.tax_in_cents[0]['_']
+              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]['_']

              title      : p.name[0]
              code       : p.plan_code[0]
              desc       : if typeof p.description[0] is "string" then p.description[0] else ""
              feeMonthly : parseInt p.unit_amount_in_cents[0]['USD'][0]['_']
              feeInitial : parseInt p.setup_fee_in_cents[0]['USD'][0]['_']
      callback no, plans

getPlanInfo = (data, callback)->

             <plan_code>#{data.code}</plan_code>
             <name>#{escape data.title}</name>
             <setup_fee_in_cents>
               <USD>#{parseInt(data.feeInitial, 10)}</USD>
             </setup_fee_in_cents>
             <unit_amount_in_cents>
               <USD>#{parseInt(data.feeMonthly, 10)}</USD>
             </unit_amount_in_cents>
             <plan_interval_length>1</plan_interval_length>
             <plan_interval_unit>months</plan_interval_unit>
