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.
This function will return Err whenever the payload does not contain
the required entries (v1
and t
).