puntopagos 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/puntopagos/notification.rb +1 -1
- data/lib/puntopagos/verification.rb +1 -1
- data/lib/puntopagos/version.rb +1 -1
- metadata +1 -1
@@ -21,7 +21,7 @@ module PuntoPagos
|
|
21
21
|
authorization = Authorization.new(@env)
|
22
22
|
signature = authorization.sign(message)
|
23
23
|
verification = PuntoPagos::Verification.new(@env)
|
24
|
-
(signature == pp_signature(headers)) and (verification.verify(params["token"], params["trx_id"], params["monto"].to_s))
|
24
|
+
(signature == pp_signature(headers)) and (verification.verify(params["token"], params["trx_id"], params["monto"].to_s + ".00"))
|
25
25
|
|
26
26
|
end
|
27
27
|
|
@@ -21,7 +21,7 @@ module PuntoPagos
|
|
21
21
|
authorization = PuntoPagos::Authorization.new(@env)
|
22
22
|
signature = authorization.sign(message)
|
23
23
|
|
24
|
-
puts "SIGNATURE: #{signature} TIMESTAMP: #{timestamp} TOKEN: #{token}"
|
24
|
+
puts "SIGNATURE: #{signature} TIMESTAMP: #{timestamp} TOKEN: #{token} TRX: #{trx_id}"
|
25
25
|
|
26
26
|
response = executioner.call_api(nil, @@path, :get, signature, timestamp)
|
27
27
|
|
data/lib/puntopagos/version.rb
CHANGED