active_merchant_payline 0.2.12 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.12
1
+ 0.2.13
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active_merchant_payline}
8
- s.version = "0.2.12"
8
+ s.version = "0.2.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ludovic Galabru"]
@@ -21,15 +21,15 @@ module ActiveMerchant #:nodoc:
21
21
  do_web_payment_envelope(xml)
22
22
  end
23
23
  end
24
-
25
- http= Net::HTTP.new('homologation.payline.com/', 443)
26
- #http = Net::HTTP.new(self.service_url, 443)
27
- http.use_ssl= true
28
- path= 'V4/services/DirectPaymentAPI'
29
- data= xml.target!
30
- resp, data = http.post(path, data)
31
- puts resp.inspect
32
- puts data.inspect
24
+
25
+ Net::HTTP.start('homologation.payline.com', 443) do |http|
26
+ http.use_ssl= true
27
+ path= 'V4/services/DirectPaymentAPI'
28
+ data= xml.target!
29
+ response = http.post(path, data)
30
+ puts response
31
+ end
32
+
33
33
  end
34
34
 
35
35
  private
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 12
9
- version: 0.2.12
8
+ - 13
9
+ version: 0.2.13
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ludovic Galabru