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
25 lines (24 loc) • 884 B
TypeScript
import { ViewStyle, TextStyle } from 'react-native';
import { PaymentDetails, Transaction, PaymentError } from '../types';
export interface PaymentButtonProps {
apiKey: string;
paymentDetails: PaymentDetails;
onSuccess: (transaction: Transaction) => void;
onError: (error: PaymentError) => void;
buttonText?: string;
environment?: 'sandbox' | 'production';
style?: ViewStyle;
textStyle?: TextStyle;
disabledStyle?: ViewStyle;
disabledTextStyle?: TextStyle;
loadingStyle?: ViewStyle;
showLoadingIndicator?: boolean;
loadingIndicatorColor?: string;
loadingIndicatorSize?: 'small' | 'large';
disabled?: boolean;
loading?: boolean;
onPress?: () => void;
showShimmer?: boolean;
shimmerStyle?: ViewStyle;
}
export default function PaymentButton(props: PaymentButtonProps): import("react/jsx-runtime").JSX.Element;