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).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
secret |
string |
body |
string |
timestamp? |
number |
Returns
Section titled “Returns”Promise<string>
Example
Section titled “Example”const header = await signStripePayload("whsec_test", body); // "t=…,v1=…"