StripeKit 0.1.1
Stripe integration toolkit for C++
Loading...
Searching...
No Matches
stripekit::SignatureVerificationException Class Reference

Thrown when a webhook delivery cannot be trusted. More...

#include <Errors.h>

Inheritance diagram for stripekit::SignatureVerificationException:
[legend]

Public Member Functions

 SignatureVerificationException (const std::string &message)
 Creates a signature verification exception.
 ~SignatureVerificationException () override
 Destroys the exception instance.
Public Member Functions inherited from stripekit::StripeKitException
 StripeKitException (const std::string &message)
 Creates an exception carrying a descriptive message.
 ~StripeKitException () override
 Destroys the exception instance.

Detailed Description

Thrown when a webhook delivery cannot be trusted.

Either the signature does not match the payload, or its timestamp is outside the allowed tolerance. Answer such a request with HTTP 400: the delivery did not come from Stripe, or was tampered with, and retrying will not help.

Definition at line 133 of file Errors.h.

Constructor & Destructor Documentation

◆ SignatureVerificationException()

stripekit::SignatureVerificationException::SignatureVerificationException ( const std::string & message)
explicit

Creates a signature verification exception.

Parameters
messageText describing which check failed.

◆ ~SignatureVerificationException()

stripekit::SignatureVerificationException::~SignatureVerificationException ( )
override

Destroys the exception instance.


The documentation for this class was generated from the following file: