@adsesugh/monnify-react-native
Version:
A React Native component for integrating Monnify payment gateway using WebView for both React Native CLI and Expo.
32 lines (31 loc) • 800 B
TypeScript
export interface PaymentParams {
apiKey: string;
contractCode: string;
mode: string;
amount: number;
currency: string;
reference: string;
customerFullName: string;
customerEmail: string;
customerMobileNumber?: string;
paymentDescription: string;
redirectUrl?: string;
metadata?: Record<string, any>;
incomeSplitConfig?: Array<{
subAccountCode: string;
feePercentage: number;
splitAmount: number;
feeBearer: boolean;
}>;
}
export interface PaymentProps {
paymentParams: PaymentParams;
onSuccess: (response: any) => void;
onError: (response: any) => void;
onDismiss: (response: any) => void;
visible: boolean;
customStyles?: {
container?: object;
webView?: object;
};
}