voko-sdk
Version:
Process payments with ease
25 lines (24 loc) • 893 B
TypeScript
import { PaymentStatus, Currency, PaymentMethod, MobileOperator } from '../types';
import { PaymentResponse } from '../interfaces';
export declare class VokoPaymentResponse implements PaymentResponse {
readonly success: boolean;
readonly transactionId: string;
readonly providerTransactionId?: string;
readonly status: PaymentStatus;
readonly amount: number;
readonly currency: Currency;
readonly phoneNumber?: string;
readonly email?: string;
readonly reference: string;
readonly message?: string;
readonly timestamp: string;
readonly paymentMethod?: PaymentMethod;
readonly operator?: MobileOperator;
readonly providerData?: Record<string, any>;
readonly fullName?: string;
constructor(data: PaymentResponse);
isSuccessful(): boolean;
isPending(): boolean;
isFailed(): boolean;
toJSON(): Record<string, any>;
}