puntopagos 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,8 +21,8 @@ module PuntoPagos
21
21
  message = create_message params["token"], params["trx_id"], params["monto"].to_s, timestamp
22
22
  authorization = Authorization.new(@env)
23
23
  signature = authorization.sign(message)
24
- puts "Generated Message: #{message}"
25
- puts "Generated Signature #{signature}"
24
+ Rails.logger.info "Generated Message: #{message}"
25
+ Rails.logger.info "Generated Signature #{signature}"
26
26
  @verification = PuntoPagos::Verification.new(@env)
27
27
  (signature == pp_signature(headers)) and (@verification.verify(params["token"], params["trx_id"], params["monto"].to_i.to_s + ".00"))
28
28
 
@@ -54,7 +54,7 @@ module PuntoPagos
54
54
  #
55
55
  # Returns the Autorizacion HTTP Header value.
56
56
  def pp_signature headers
57
- puts "Notification Authorization: #{headers['Autorizacion']}"
57
+ Rails.logger.info "Notification Authorization: #{headers['Autorizacion']}"
58
58
  headers['Autorizacion']
59
59
  end
60
60
 
@@ -64,7 +64,7 @@ module PuntoPagos
64
64
  #
65
65
  # Returns the Fecha HTTP Header value.
66
66
  def get_timestamp headers
67
- puts "Notification Date #{headers['Fecha']}"
67
+ Rails.logger.info "Notification Date #{headers['Fecha']}"
68
68
  headers['Fecha']
69
69
  end
70
70
  end
@@ -1,3 +1,3 @@
1
1
  module PuntoPagos
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
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.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: