@rebilly/framepay-react
Version:
A React wrapper for Rebilly's FramePay offering out-of-the-box support for Redux and other common React features
17 lines (16 loc) • 565 B
TypeScript
import * as React from 'react';
import type { ProviderProps } from '../../../types/provider';
import type { FramePayContext } from '../../../types/context';
export default class Provider extends React.Component<ProviderProps, FramePayContext> {
static readonly defaultProps: {
injectScript: boolean;
onError: () => {};
onReady: () => {};
onTokenReady: () => {};
};
readonly state: FramePayContext;
componentDidMount(): void;
onApiError(): void;
onApiReady(): Promise<void>;
render(): React.JSX.Element;
}