dineromail 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/dineromail.gemspec +1 -1
- data/lib/dineromail/notification.rb +3 -3
- data/lib/dineromail/status_report.rb +2 -1
- data/lib/dineromail/version.rb +1 -1
- metadata +4 -4
data/dineromail.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ["nicolas@soluciones-simplex.com.ar", "shadi@soluciones-simplex.com.ar", "juanpablo@soluciones-simplex.com.ar"]
|
11
11
|
s.homepage = ""
|
12
12
|
s.summary = %q{Dineromail library for Rails}
|
13
|
-
s.description = %q{Integration with dineromail plataform for rails
|
13
|
+
s.description = %q{Integration with dineromail plataform for rails projects}
|
14
14
|
|
15
15
|
s.add_dependency "xml-simple"
|
16
16
|
s.add_dependency "httparty"
|
@@ -19,10 +19,10 @@ module Dineromail
|
|
19
19
|
def self.from_xml(notification_xml)
|
20
20
|
notifications = []
|
21
21
|
notificaction_data = XmlSimple.xml_in(notification_xml)
|
22
|
-
operations = notificaction_data['
|
22
|
+
operations = notificaction_data['operaciones'].first['operacion']
|
23
23
|
operations.each do |operation|
|
24
|
-
tipo = operation['
|
25
|
-
transaction_id = operation['
|
24
|
+
tipo = operation['tipo'].first
|
25
|
+
transaction_id = operation['id'].first
|
26
26
|
notifications << self.new(transaction_id, tipo)
|
27
27
|
end
|
28
28
|
notifications
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'xmlsimple'
|
2
|
+
require 'httparty'
|
2
3
|
require 'dineromail/buyer'
|
3
4
|
module Dineromail
|
4
5
|
class StatusReport
|
@@ -29,7 +30,7 @@ module Dineromail
|
|
29
30
|
<ID>#{transaction_id}</ID>
|
30
31
|
</OPERACIONES>
|
31
32
|
</CONSULTA>
|
32
|
-
|
33
|
+
</DETALLE>
|
33
34
|
</REPORTE>"
|
34
35
|
response = HTTParty.get ipn_url , :query => {:data => request_data}
|
35
36
|
parse_response response.body
|
data/lib/dineromail/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dineromail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nicolas Mosconi
|
@@ -91,7 +91,7 @@ dependencies:
|
|
91
91
|
version: "0"
|
92
92
|
type: :development
|
93
93
|
version_requirements: *id005
|
94
|
-
description: Integration with dineromail plataform for rails
|
94
|
+
description: Integration with dineromail plataform for rails projects
|
95
95
|
email:
|
96
96
|
- nicolas@soluciones-simplex.com.ar
|
97
97
|
- shadi@soluciones-simplex.com.ar
|