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)

22 lines (21 loc) 790 B
import { Error } from '../core/Error'; import { CreditCardResponse } from '../types/payments'; import { ApiReturn } from '../types/common'; import { CardDetails } from '../types/card'; declare function getCardDetails(reference: string): Promise<[Error<any> | null, CreditCardResponse | null]>; declare function validateCard(card: CardDetails): Record<string, string[]>; declare function tokenizeCard(request: { number: string; cardholder: string; expiryMonth: number; expiryYear: number; verificationCode: string; currency?: string; description?: string; }): ApiReturn<CreditCardResponse>; export declare function useCard(): { tokenizeCard: typeof tokenizeCard; validateCard: typeof validateCard; getCardDetails: typeof getCardDetails; }; export {};