UNPKG

droplinked-payment-hub

Version:

A unified payment component that handles different payment providers

68 lines (67 loc) 1.75 kB
export interface ButtonStyle { backgroundColor?: string; textColor?: string; fontSize?: string; fontWeight?: number; borderRadius?: string; } /** * Interface for common styling across the payment component */ export interface CommonStyle { fontFamily?: string; fontSizeLabel?: string; fontSizeInput?: string; fontSizePaymentButton?: string; fontWeightLabel?: number; fontWeightInput?: number; fontWeightPaymentButton?: number; colorContainer?: string; colorBorderInput?: string; colorBorderPaymentButton?: string; borderRadius?: string; colorDisabled?: string; colorError?: string; colorPrimary?: string; colorInput?: string; textColorLabel?: string; textColorPaymentButton?: string; textColorInput?: string; placeholderColor?: string; containerWidth?: string; verticalPadding?: string; verticalSpacing?: string; containerPadding?: string; backgroundBody?: string; textColorParagraphs?: string; submitButton?: ButtonStyle; cancelButton?: ButtonStyle; theme?: "light" | "dark"; } /** * Supported payment provider types */ /** * Props interface for the DroplinkedPaymentIntent component */ export interface PaymentElementProps { orderId: string; type: string; commonStyle?: CommonStyle; onSuccess: () => void; onCancel: () => void; onError: (error: unknown) => void; return_url?: string; cancel_url?: string; isTestnet?: boolean; intentType?: string; isProductTile?: boolean; } /** * Default button style */ export declare const defaultButtonStyle: ButtonStyle; /** * Default common style for payment components */ export declare const defaultCommonStyle: CommonStyle;