voko-sdk
Version:
Process payments with ease
25 lines (24 loc) • 854 B
TypeScript
import { PaymentMethod, Currency, MobileOperator } from '../types';
import { PaymentRequest } from '../interfaces';
export declare class VokoPaymentRequest implements PaymentRequest {
readonly amount: number;
readonly currency: Currency;
readonly phoneNumber?: string;
readonly email?: string;
readonly fullName?: string;
readonly reference: string;
readonly description?: string;
readonly callbackUrl?: string;
readonly metadata: Record<string, any>;
readonly paymentMethod?: PaymentMethod;
readonly operator?: MobileOperator;
readonly accountNumber?: string;
readonly otp?: string;
readonly timestamp: string;
constructor(data: PaymentRequest);
private validateAmount;
private normalizePhoneNumber;
private validate;
private isValidEmail;
toJSON(): Record<string, any>;
}