Class: Cybersourcery::CartSignatureChecker

Inherits:
SignatureChecker show all
Defined in:
lib/cybersourcery/cart_signature_checker.rb

Instance Attribute Summary collapse

Attributes inherited from SignatureChecker

#params, #profile

Instance Method Summary collapse

Methods inherited from SignatureChecker

#initialize, #run, #run!

Constructor Details

This class inherits a constructor from Cybersourcery::SignatureChecker

Instance Attribute Details

#sessionObject (readonly)

Returns the value of attribute session.



3
4
5
# File 'lib/cybersourcery/cart_signature_checker.rb', line 3

def session
  @session
end

Instance Method Details

#post_initialize(args) ⇒ Object



5
6
7
# File 'lib/cybersourcery/cart_signature_checker.rb', line 5

def post_initialize(args)
  @session = args[:session]
end

#signatureObject



13
14
15
# File 'lib/cybersourcery/cart_signature_checker.rb', line 13

def signature
  @session[:cart_signature]
end

#signed_field_namesObject



9
10
11
# File 'lib/cybersourcery/cart_signature_checker.rb', line 9

def signed_field_names
  @session[:signed_cart_fields]
end