pay-sdk-react
Version:
A cross-platform payment SDK for React, supporting Alipay, WeChat Pay, PayPal, Stripe, Payssion, and Airwallex, compatible with H5, PC, and App environments.
9 lines (8 loc) • 759 B
TypeScript
export declare const isServerRendering: boolean;
export declare const clientWindow: (Window & typeof globalThis) | undefined;
export declare const clientDocument: Document | undefined;
export declare const localStorage: Storage | (() => void);
export declare const location: (() => void) | ((action: keyof Location, value?: any) => string | undefined);
export declare const open: (url: string, target?: string) => void;
export declare const on: (element: EventTarget | null, event: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void;
export declare const off: (element: EventTarget | null, event: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void;