Skip to content

signStripePayload

function signStripePayload(
secret,
body,
timestamp?
): Promise<string>;

Defined in: src/billing/stripe.ts:198

Build a Stripe-Signature header for body (tests, local tooling).

Parameter Type
secret string
body string
timestamp? number

Promise<string>

const header = await signStripePayload("whsec_test", body); // "t=…,v1=…"