Class: OffsitePayments::Integrations::Klarna::Notification::Verifier
- Inherits:
-
Object
- Object
- OffsitePayments::Integrations::Klarna::Notification::Verifier
- Defined in:
- lib/offsite_payments/integrations/klarna.rb
Instance Attribute Summary collapse
-
#digest ⇒ Object
readonly
Returns the value of attribute digest.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#shared_secret ⇒ Object
readonly
Returns the value of attribute shared_secret.
Instance Method Summary collapse
-
#initialize(header, payload, shared_secret) ⇒ Verifier
constructor
A new instance of Verifier.
- #verify ⇒ Object
Constructor Details
#initialize(header, payload, shared_secret) ⇒ Verifier
Returns a new instance of Verifier.
251 252 253 254 255 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 251 def initialize(header, payload, shared_secret) @header, @payload, @shared_secret = header, payload, shared_secret @digest = extract_digest end |
Instance Attribute Details
#digest ⇒ Object (readonly)
Returns the value of attribute digest.
250 251 252 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 250 def digest @digest end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
250 251 252 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 250 def header @header end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
250 251 252 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 250 def payload @payload end |
#shared_secret ⇒ Object (readonly)
Returns the value of attribute shared_secret.
250 251 252 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 250 def shared_secret @shared_secret end |
Instance Method Details
#verify ⇒ Object
257 258 259 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 257 def verify digest_matches? end |