payture_api 0.1.6 → 0.1.7
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 +2 -2
- 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: 7c0aaf7fd6858271698480c959f9a4146c3fb007
|
4
|
+
data.tar.gz: 90b46a1ccb7fa8c977b6176a2b1013a1bf72a275
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ce176a455687c4c00258dee0d56e9a4056104587f27836dcd86fad0b519e80950f1f25d88f52ced8a2071311081b403392d3a644685e928df10d3ac969882dd
|
7
|
+
data.tar.gz: 459cbaec570843c7a95f1979eb48e6f1706735f3c92da1edb9b562d8b18667a8b9037e83fb957447b0a0f1985f5750315f464d0199c0e59366b132cf528ab3a3
|
data/lib/payture/api.rb
CHANGED
@@ -19,9 +19,9 @@ class Payture::API
|
|
19
19
|
# puts "request.data: #{data}"
|
20
20
|
|
21
21
|
uri = URI::HTTPS.build({ host: @host, path: path })
|
22
|
-
|
22
|
+
puts "URI: #{uri}"
|
23
23
|
http = Net::HTTP.new(uri.host, uri.port)
|
24
|
-
|
24
|
+
http.use_ssl = true
|
25
25
|
req = Net::HTTP::Post.new(uri.request_uri)
|
26
26
|
req.body = data.to_query
|
27
27
|
# puts "request: #{req}"
|
data/lib/payture/version.rb
CHANGED