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.
267 268 269 270 271 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 267 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.
266 267 268 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 266 def digest @digest end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
266 267 268 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 266 def header @header end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
266 267 268 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 266 def payload @payload end |
#shared_secret ⇒ Object (readonly)
Returns the value of attribute shared_secret.
266 267 268 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 266 def shared_secret @shared_secret end |
Instance Method Details
#verify ⇒ Object
273 274 275 |
# File 'lib/offsite_payments/integrations/klarna.rb', line 273 def verify digest_matches? end |