[][src]Function stripe_wh_verify::verify

pub fn verify(
    secret: &str,
    header: &str,
    payload: &str
) -> Result<bool, Box<dyn Error>>

Implements Webhook payload verification, in accordance with official Stripe docs. See docs for details.

Errors

This function will return Err whenever the payload does not contain the required entries (v1 and t).