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) 528 B
import { ApiReturn } from '../types/common'; interface FetchParam extends RequestInit { url: string; apiKey?: string; method?: string; headers?: Record<string, string>; body?: any; bodyRaw?: any; } declare class PaymentGatewayApi { private baseUrl; private apiKey; configure(options: { baseUrl?: string; apiKey?: string; }): void; fetch<T = any>(params: FetchParam): ApiReturn<T>; } export declare function usePaymentApi(): { api: PaymentGatewayApi; }; export {};