|
StripeKit 0.1.1
Stripe integration toolkit for C++
|
Checks that a webhook delivery really came from Stripe. More...
#include <WebhookVerifier.h>
Public Member Functions | |
| virtual | ~WebhookSignatureVerifier ()=default |
| Destroys the verifier instance. | |
| virtual VerificationMetadata | verify (const WebhookVerificationInput &input) const =0 |
| Checks a signature and reports what it contained. | |
Checks that a webhook delivery really came from Stripe.
Applications do not normally use this directly — stripekit::webhooks::construct_event() and stripekit::webhooks::process_event_once() do the verification for them. It is worth implementing only to substitute a different crypto backend, or to inject failures in tests.
Definition at line 68 of file WebhookVerifier.h.
|
virtualdefault |
Destroys the verifier instance.
|
pure virtual |
Checks a signature and reports what it contained.
| input | The payload, signature header, secret, and timing rules. |
| SignatureVerificationException | The header is malformed, no signature matches, or the timestamp is outside the tolerance. |
Implemented in stripekit::DefaultWebhookSignatureVerifier.