puntopagos 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module PuntoPagos
4
4
  def initialize env = nil
5
5
  @env = env
6
6
  @@config ||= PuntoPagos::Config.new(@env)
7
- @@function = "transaccion/notificar"
7
+ @@function = "transaccion/notificacion"
8
8
  end
9
9
 
10
10
  # Public: Validates the message sent by PuntoPagos in the
@@ -1,3 +1,3 @@
1
1
  module PuntoPagos
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -29,9 +29,9 @@ class CreateRequestTest < Test::Unit::TestCase
29
29
 
30
30
  def test_notification
31
31
  puts "testing notification"
32
- notification = PuntoPagos::Notification.new('test')
32
+ notification = PuntoPagos::Notification.new('production')
33
33
  headers = {'Fecha' => 'Thu, 14 Jun 2012 22:52:47 GMT', 'Autorizacion' => 'PP rkdXmAGWLHCKdPyyk6ig:qOSavthLY3ElqsRCtxFEl02lL1s='}
34
- params = {'token' => 'M5N1DAE6PALVAF8K', 'monto' => "1000000.0", 'trx_id' => '9787415132'}
34
+ params = {'token' => 'M5N1DAE6PALVAF8K', 'monto' => "1000000.00", 'trx_id' => '9787415132'}
35
35
  assert notification.valid?(headers, params) == true
36
36
  end
37
37
 
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.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-07-10 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
17
- requirement: &2161111680 !ruby/object:Gem::Requirement
17
+ requirement: &2157181420 !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: *2161111680
25
+ version_requirements: *2157181420
26
26
  description: Ruby wrapper for PuntoPagos Payment API
27
27
  email:
28
28
  - imella@acid.cl