Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

logging post body

  • Loading branch information...
commit 7b71f2d5c44ab18fcef201e2245ec0c9ce645c87 1 parent e4cb5fe
Rafael Souza authored
5 lib/cielo/authorization_request.rb
@@ -15,7 +15,10 @@ def authorize
15 15 http.read_timeout = 40 * 1000
16 16 Cielo.logger.info(http.inspect)
17 17
18   - response = http.request_post(Cielo.configuration.path, "mensagem=#{to_xml}")
  18 + post_body = "mensagem=#{to_xml}"
  19 + Cielo.logger.info(post_body)
  20 +
  21 + response = http.request_post(Cielo.configuration.path, post_body)
19 22 Cielo.logger.info(response.body)
20 23
21 24 Transaction.parse(response.body, :single => true)
5 lib/cielo/capture_request.rb
@@ -15,7 +15,10 @@ def capture
15 15 http.read_timeout = 40 * 1000
16 16 Cielo.logger.info(http.inspect)
17 17
18   - response = http.request_post(Cielo.configuration.path, "mensagem=#{to_xml}")
  18 + post_body = "mensagem=#{to_xml}"
  19 + Cielo.logger.info(post_body)
  20 +
  21 + response = http.request_post(Cielo.configuration.path, post_body)
19 22 Cielo.logger.info(response.body)
20 23
21 24 Transaction.parse(response.body, :single => true)
5 lib/cielo/transaction_request.rb
@@ -22,7 +22,10 @@ def create
22 22 http.read_timeout = 40 * 1000
23 23 Cielo.logger.info(http.inspect)
24 24
25   - response = http.request_post(Cielo.configuration.path, "mensagem=#{to_xml}")
  25 + post_body = "mensagem=#{to_xml}"
  26 + Cielo.logger.info(post_body)
  27 +
  28 + response = http.request_post(Cielo.configuration.path, post_body)
26 29 Cielo.logger.info(response.body)
27 30
28 31 Transaction.parse(response.body, :single => true)

0 comments on commit 7b71f2d

Please sign in to comment.
Something went wrong with that request. Please try again.