voko-sdk
Version:
Process payments with ease
19 lines (18 loc) • 486 B
TypeScript
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;
}