UNPKG

@tsed/stripe

Version:
14 lines (13 loc) 482 B
import "../services/StripeFactory.js"; import { MiddlewareMethods } from "@tsed/platform-middlewares"; import { Context } from "@tsed/platform-params"; import { Stripe } from "stripe"; export interface WebhookEventOptions { secret: string; tolerance: number; } export declare class WebhookEventMiddleware implements MiddlewareMethods { protected stripe: Stripe; protected webhooks: WebhookEventOptions; use(signature: string, body: Buffer, ctx: Context): any; }