stripe-pay-server 10.2.3

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