@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)
27 lines (26 loc) • 805 B
TypeScript
import { Error } from '../core/Error';
import { Handler, MountHandler, PayloadHandler, ThemeSource } from '../types/config';
import { OrderIntent } from '../types/payments';
export declare function capturePayment(options: {
orderIntentId: string;
onSuccess: PayloadHandler<OrderIntent>;
onError?: PayloadHandler<Error>;
onVerify?: MountHandler;
onMounted?: Handler;
apiKey: string;
height?: number;
isVerificationCodeRequired?: boolean;
verificationCode?: string;
theme?: ThemeSource;
meta?: Record<string, string>;
attachCard?: {
reference: string;
type: string;
amount: string;
consumerOwningEntity?: string;
paymentConfig?: string;
};
}): {
dispose: () => void;
changeTheme: (name: string) => void;
};