UNPKG

thawani-nodejs

Version:

Node.js library for Thawani Payment Gateway

9 lines (8 loc) 364 B
import { WebhookEvent } from '../types/webhook'; export declare class WebhookHandler { private readonly webhookSecret; constructor(webhookSecret: string); verifySignature(event: WebhookEvent): boolean; calculateSignature(payload: string, secret: string): string; constructEvent(body: any, signature: string, timestamp: string): WebhookEvent; }