UNPKG

zips-react-native-sdk-test

Version:

Lightweight ZIPS Payment Gateway SDK for React Native - Complete payment solution with card payments, wallet payments (AfrMoney & ZApp), netbanking, and native UI design

65 lines (64 loc) 1.7 kB
/** * Default currency for the ZIPS payment system */ export declare const DEFAULT_CURRENCY = "GMD"; /** * Get default currency */ export declare const getDefaultCurrency: () => string; /** * Format amount for display */ export declare const formatAmount: (amount: number, currency?: string) => string; /** * Format date for display */ export declare const formatDate: (dateString: string) => string; /** * Validate account number */ export declare const validateAccountNumber: (account: string) => boolean; /** * Validate card number using Luhn algorithm */ export declare const validateCardNumber: (cardNumber: string) => boolean; /** * Format card number with spaces */ export declare const formatCardNumber: (text: string) => string; /** * Format account number with spaces */ export declare const formatAccountNumber: (text: string) => string; /** * Validate phone number */ export declare const validatePhoneNumber: (phone: string) => boolean; /** * Validate email address */ export declare const validateEmail: (email: string) => boolean; /** * Generate UUID v4 */ export declare const generateUUID: () => string; /** * Delay function for retries */ export declare const delay: (ms: number) => Promise<void>; /** * Retry function with exponential backoff */ export declare const retryWithBackoff: <T>(fn: () => Promise<T>, maxRetries?: number, baseDelay?: number) => Promise<T>; /** * Check if error is network related */ export declare const isNetworkError: (error: any) => boolean; /** * Sanitize input for security */ export declare const sanitizeInput: (input: string) => string; /** * Deep clone object */ export declare const deepClone: <T>(obj: T) => T;