@ribpay/react-payline
Version:
_This is an unofficial repository_
32 lines (31 loc) • 1.04 kB
TypeScript
declare type PaylineApi = {
endToken: (additionnalData: any, callback: Function, spinner: any, handledByMerchant: boolean) => void;
finalizeShortCut: Function;
getBuyerShortCut: Function;
getCancelAndReturnUrls: Function;
getContextInfo: (key: string) => any;
getCssIframeWhiteList: Function;
getFragmentedPaymentInfo: Function;
getLanguage: Function;
getOrderInfos: Function;
getRecurringDetails: Function;
getToken: Function;
getTokenStatus: (token: string, callback: (tokenStatus: 'ALIVE' | 'EXPIRED' | 'UNKNOWN') => void) => void;
hide: Function;
init: Function;
isSandBox: Function;
reset: (token?: string, template?: string) => void;
show: () => void;
toggle: () => void;
updateWebpaymentData: (token: string, data: any) => void;
};
declare global {
interface Window {
Payline?: {
Api: PaylineApi;
};
RIBPayInit?: () => void;
}
}
declare const usePayline: () => PaylineApi | undefined;
export default usePayline;