lib/paykassa/pay.rb in paykassa-0.1.29 vs lib/paykassa/pay.rb in paykassa-0.1.30

- old
+ new

@@ -82,12 +82,14 @@ private def make_request(func:,data: ,merge_auth: , url: nil) data = data.merge({func: func}) if !func.nil? data = data.merge(@_auth) if merge_auth url = BASE_URL if url.nil? + puts "private Pay.make_request with params: url: #{url.inspect}, data: #{data.inspect}" @logger.info("private Pay.make_request with params: url: #{url.inspect}, data: #{data.inspect}") unless @logger.nil? res = Net::HTTP.post_form(url, data) @logger.info("private Pay.make_request: result: #{res.inspect}") unless @logger.nil? + puts "private Pay.make_request: result: #{res.inspect}" JSON.parse(res.body).deep_symbolize_keys end end