stripe_pay_server/webhook/enum.rs
1/// Why a webhook signature was rejected.
2#[derive(Clone, Debug, Eq, PartialEq)]
3pub enum WebhookError {
4 /// The `Stripe-Signature` header carried no `v1` digest.
5 MissingSignature,
6 /// The signed timestamp is older or newer than the tolerance.
7 TimestampOutOfTolerance,
8 /// The endpoint's signing secret was empty.
9 EmptySecret,
10 /// The body does not hash to the supplied digest.
11 SignatureMismatch,
12}