def stripe.check
bend-kit-webhooks@0.11.0.1 · webhooks.bend:400
import bend-kit-webhooks@0.11.0.1/webhooks.bend as Webhooks
import Base
import bend-kit-time@0.3.0.0/time.bend as Time
400def stripe.check(+tol: U32, now: Time.Instant, +h: Map<&2, List<&2, String>>) -> Result<&1, &1, Err, Unit & String & List<&2, String>>:
401 do Result<&1, &1, Err, Unit & String & List<&2, String>>:
402 sig : String <- need("stripe-signature", field(h, "stripe-signature"))
403 p : String & List<&2, String> <- stripe.one(stripe.items(String.split(sig, ',')))
404 stripe.when(tol, now, p)