puntopagos 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.textile +10 -11
  2. data/lib/puntopagos/version.rb +1 -1
  3. metadata +3 -3
data/README.textile CHANGED
@@ -33,18 +33,17 @@ h2. Sample Usage
33
33
 
34
34
  <pre>
35
35
 
36
- req = PuntoPagos::Request.new
37
- data = {
38
- 'trx_id' => 'UNIQUE-TRACKING-ID',
39
- 'monto' => '1000.00'
40
- #other gateway-specific parameter
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
 
@@ -1,3 +1,3 @@
1
1
  module PuntoPagos
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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: &2156966000 !ruby/object:Gem::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: *2156966000
25
+ version_requirements: *2157960520
26
26
  description: Ruby wrapper for PuntoPagos Payment API
27
27
  email:
28
28
  - imella@acid.cl