voko-sdk
Version:
Process payments with ease
21 lines (20 loc) • 631 B
TypeScript
import { ProviderConfig, PaymentMethod, MobileOperator, Currency, BankOperator } from '../core/types';
export type VokoClientConfig = ProviderConfig & {
enableLogging?: boolean;
logLevel?: 'debug' | 'info' | 'warn' | 'error';
};
export interface QuickPaymentRequest {
amount: number;
phoneNumber?: string;
email?: string;
fullName?: string;
callbackUrl?: string;
reference?: string;
description?: string;
currency?: Currency;
metadata?: Record<string, any>;
paymentMethod?: PaymentMethod;
operator?: MobileOperator | BankOperator;
otp?: string;
accountNumber?: string;
}