react-klasha
Version:
React hooks and components for accepting payments with the Klasha payment gateway
13 lines (12 loc) • 483 B
TypeScript
import React, { ReactElement, Ref } from 'react';
import { KlashaOptionsProps } from './types';
export interface KlashaRenderProps {
initializePayment: () => void;
ref?: Ref<any>;
}
interface KlashaConsumerProps extends KlashaOptionsProps {
children: (props: KlashaRenderProps) => ReactElement | null;
callBack?: Function;
}
declare const KlashaConsumer: React.ForwardRefExoticComponent<KlashaConsumerProps & React.RefAttributes<any>>;
export default KlashaConsumer;