Skip to content

Commit

Permalink
log xml
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomilho committed Sep 21, 2011
1 parent 9b31615 commit bd78301
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/moip/client.rb
Expand Up @@ -38,7 +38,10 @@ def verify account

# Envia uma instrução para pagamento único
def checkout(attributes = {})
full_data = peform_action!(:post, 'EnviarInstrucao/Unica', :body => DirectPayment.body(attributes))
body = DirectPayment.body(attributes)
puts "************ XML ************"
puts body

This comment has been minimized.

Copy link
@felipetio

felipetio Jun 25, 2014

Pode isso Arnaldo?

full_data = peform_action!(:post, 'EnviarInstrucao/Unica', :body => body)
# raise full_data.inspect
get_response!(full_data["ns1:EnviarInstrucaoUnicaResponse"]["Resposta"])
end
Expand Down

0 comments on commit bd78301

Please sign in to comment.