Exception: StraddlePay::SignatureVerificationError
- Defined in:
- lib/straddle_pay/errors.rb
Overview
Raised when webhook signature verification fails.
Instance Attribute Summary collapse
-
#sig_header ⇒ String?
readonly
The signature header that failed verification.
Attributes inherited from Error
#body, #error_items, #error_type, #status
Instance Method Summary collapse
-
#initialize(message, sig_header: nil) ⇒ SignatureVerificationError
constructor
A new instance of SignatureVerificationError.
Constructor Details
#initialize(message, sig_header: nil) ⇒ SignatureVerificationError
Returns a new instance of SignatureVerificationError.
54 55 56 57 |
# File 'lib/straddle_pay/errors.rb', line 54 def initialize(, sig_header: nil, **) super(, **) @sig_header = sig_header end |
Instance Attribute Details
#sig_header ⇒ String? (readonly)
Returns the signature header that failed verification.
52 53 54 |
# File 'lib/straddle_pay/errors.rb', line 52 def sig_header @sig_header end |