payture_api 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f6f3c1f9539f2d7ae66ad675c461f81832f2954
4
- data.tar.gz: 27aed77dc58e066aaaf0990fd6c917c67c2d7a7a
3
+ metadata.gz: fd1150eb4c43bf84ec0deb0d2db431cf5f30bc86
4
+ data.tar.gz: 0d5d7262ba4ecef86e04b7e1a3da7ff3d03382dc
5
5
  SHA512:
6
- metadata.gz: 24950c333fa30739fd409dfb79a15d513a8bef7965da346de5bf4274bb7d6980ddb454decb013bf55f17980a23791e3ae8a8778738581b0ba974671bb9230126
7
- data.tar.gz: 4cffadf22ac0d47af21b31bd34d29bc738962906436122664349de28ffdbf4aa6b03ff87ad0ec89056a8dccc563391a5ede8d49b985d0ad02a255387857f8a99
6
+ metadata.gz: 794b12bafa2ef2dda3ac8b3fd52c3f9c76e24c893e7e9411c5dc2f6cda3e055418892650a1a6886e43adf1824c87d36101e7a7a3a47b50b632dc2215cbaaf6fe
7
+ data.tar.gz: 830aef0f44738236ab96e139914732b7f1741995a9eb6b910efeeb06b67726ff31a55baa8c07635c27ed6624219077d9cb446fc66882044491637ab316bec156
data/lib/payture/api.rb CHANGED
@@ -16,15 +16,15 @@ class Payture::API
16
16
 
17
17
  def request(path, merchant, params)
18
18
  data = { VWID: merchant, DATA: params.url_encode }
19
- puts "request.data: #{data}"
19
+ # puts "request.data: #{data}"
20
20
 
21
21
  uri = URI::HTTPS.build({ host: @host, path: path })
22
- puts "URI: #{uri}"
22
+ # puts "URI: #{uri}"
23
23
  http = Net::HTTP.new(uri.host, uri.port)
24
- http.use_ssl = true
24
+ # http.use_ssl = true
25
25
  req = Net::HTTP::Post.new(uri.request_uri)
26
26
  req.body = data.to_query
27
- puts "request: #{req}"
27
+ # puts "request: #{req}"
28
28
  res = http.request(req)
29
29
 
30
30
  # OpenStruct.new(Hash.from_xml(res.body).downcase_key)
@@ -1,3 +1,3 @@
1
1
  module Payture
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payture_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill