puntopagos 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +10 -11
- data/lib/puntopagos/version.rb +1 -1
- metadata +3 -3
data/README.textile
CHANGED
@@ -33,18 +33,17 @@ h2. Sample Usage
|
|
33
33
|
|
34
34
|
<pre>
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
resp = req.create(data)
|
36
|
+
trx_id = 'UNIQUE-TRACKING-ID' # Number as a string
|
37
|
+
amount = '1000.00' # Number as a string with two decimals
|
38
|
+
payment_method = 'some number' # Optional parameter (see PuntoPagos documentation)
|
39
|
+
|
40
|
+
req = PuntoPagos::Request.new()
|
41
|
+
|
42
|
+
resp = req.create(trx_id, amount, payment_method)
|
44
43
|
if (resp.success?)
|
45
44
|
redirect_to resp.payment_process_url
|
46
45
|
end
|
47
|
-
|
46
|
+
|
48
47
|
</pre>
|
49
48
|
|
50
49
|
|
@@ -59,9 +58,9 @@ h2. TODO
|
|
59
58
|
* Config testing
|
60
59
|
* Response testing
|
61
60
|
* Functional testing
|
62
|
-
* Documentation
|
61
|
+
* Documentation
|
63
62
|
|
64
|
-
h2. Credits
|
63
|
+
h2. Credits
|
65
64
|
|
66
65
|
Ignacio Mella & Gert Findel
|
67
66
|
|
data/lib/puntopagos/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puntopagos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2012-06-15 00:00:00.000000000Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
17
|
-
requirement: &
|
17
|
+
requirement: &2157960520 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 1.6.7
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2157960520
|
26
26
|
description: Ruby wrapper for PuntoPagos Payment API
|
27
27
|
email:
|
28
28
|
- imella@acid.cl
|