UNPKG

@eonx/payment-elements

Version:

- [Configuration](#configuration) - [Create payment card](#create-payment-card) - [Capture payment](#capture-payment) - [Pay now](#pay-now) - [Void payment](#void-payment) - [Types](#types) - [Error handling](#error-handling)

23 lines (22 loc) 766 B
import { CustomConfig, ThemeCustomConfig } from '../types/config'; declare function getUiUrl(): string; declare function getPaymentGatewayUrl(): string; declare function getTheme(name?: string): ThemeCustomConfig; declare function getCurrency(): string; declare function isTest(): boolean; export declare function configurePaymentElements(options?: CustomConfig): void; export declare function useConfig(): { setup: { uiStagingUrl: string; uiProdUrl: string; apiStagingUrl: string; apiProdUrl: string; }; config: CustomConfig; getCurrency: typeof getCurrency; getPaymentGatewayUrl: typeof getPaymentGatewayUrl; isTest: typeof isTest; getUiUrl: typeof getUiUrl; getTheme: typeof getTheme; }; export {};