UNPKG

@foxy.io/sdk

Version:

Universal SDK for a full server-side and a limited in-browser access to Foxy hAPI.

18 lines (17 loc) 704 B
interface Webhook { /** The `Foxy-Webhook-Signature` header value received with the webhook. */ signature: string; /** The serialized (string) request body received with the webhook. */ payload: string; /** The encryption key for this particular webhook. */ key: string; } /** * Verifies that the webhook your app has received was indeed sent from our servers. * See [our wiki](https://wiki.foxycart.com/v/2.0/webhooks#validating_the_payload) for more info. * * @param webhook info received with the webhook that needs validation * @returns True if this webhook has a valid signature. */ export declare function verifyWebhookSignature(webhook: Webhook): boolean; export {};