Exception: Increase::WebhookSignatureVerificationError

Inherits:
Error
  • Object
show all
Defined in:
lib/increase/errors.rb

Overview

WebhookSignatureVerificationError is raised when a received webhook’s signature is invalid.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "Increase webhook signature verification failed", signature_header: nil, payload: nil) ⇒ WebhookSignatureVerificationError

Returns a new instance of WebhookSignatureVerificationError.



92
93
94
95
96
97
# File 'lib/increase/errors.rb', line 92

def initialize(message = "Increase webhook signature verification failed", signature_header: nil, payload: nil)
  @signature_header = signature_header
  @payload = payload

  super(message)
end

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload.



90
91
92
# File 'lib/increase/errors.rb', line 90

def payload
  @payload
end

#signature_headerObject (readonly)

Returns the value of attribute signature_header.



89
90
91
# File 'lib/increase/errors.rb', line 89

def signature_header
  @signature_header
end