lib/dineromail/status_report.rb in dineromail-0.0.1 vs lib/dineromail/status_report.rb in dineromail-0.0.2
- old
+ new
@@ -1,6 +1,7 @@
require 'xmlsimple'
+require 'httparty'
require 'dineromail/buyer'
module Dineromail
class StatusReport
attr_accessor :transaction_id, :date, :status, :amount, :net_amount, :pay_method, :pay_medium, :buyer
@@ -27,10 +28,10 @@
<TIPO>1</TIPO>
<OPERACIONES>
<ID>#{transaction_id}</ID>
</OPERACIONES>
</CONSULTA>
- <DETALLE>
+ </DETALLE>
</REPORTE>"
response = HTTParty.get ipn_url , :query => {:data => request_data}
parse_response response.body
end
\ No newline at end of file