@tsed/stripe
Version:
Stripe package for Ts.ED framework
14 lines (13 loc) • 482 B
TypeScript
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;
}