|
StripeKit 0.1.1
Stripe integration toolkit for C++
|
Tuning for construct_event(). More...
#include <Webhooks.h>
Public Attributes | |
| std::chrono::system_clock::time_point | now = std::chrono::system_clock::now() |
| Current time, used to check the signature's timestamp. | |
| std::chrono::seconds | tolerance = std::chrono::minutes(5) |
| How far the signature's timestamp may be from now. | |
Tuning for construct_event().
The defaults are what Stripe recommends.
Definition at line 34 of file Webhooks.h.
| std::chrono::system_clock::time_point stripekit::webhooks::ConstructEventOptions::now = std::chrono::system_clock::now() |
Current time, used to check the signature's timestamp.
Override in tests.
Definition at line 36 of file Webhooks.h.
| std::chrono::seconds stripekit::webhooks::ConstructEventOptions::tolerance = std::chrono::minutes(5) |
How far the signature's timestamp may be from now.
This is what stops an old delivery being replayed. Widening it past a few minutes weakens that protection; if verification fails because the clocks disagree, fix the clock rather than the tolerance.
Definition at line 45 of file Webhooks.h.