UNPKG

voko-sdk

Version:
19 lines (18 loc) 486 B
import { PaymentStatus, Currency } from '../types/payment.types'; export interface WebhookPayload { transactionId: string; providerTransactionId?: string; status: PaymentStatus; amount: number; currency: Currency; reference: string; phoneNumber?: string; timestamp: string; signature?: string; rawPayload: Record<string, any>; } export interface WebhookVerificationResult { valid: boolean; payload?: WebhookPayload; error?: string; }