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 +4 -4
- data/lib/payture/api.rb +4 -4
- data/lib/payture/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd1150eb4c43bf84ec0deb0d2db431cf5f30bc86
|
4
|
+
data.tar.gz: 0d5d7262ba4ecef86e04b7e1a3da7ff3d03382dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/payture/version.rb
CHANGED