react-sdk-mercadopago
Version:
A hook to facilitate the use of the mercadopago sdk js
42 lines • 1.14 kB
TypeScript
import { Cause } from './cause';
export declare type GetPaymentMethod = (settings: {
bin: string;
payment_method_id?: string;
}, callback: CallbackGetPaymentMethod) => CallbackGetPaymentMethod;
export declare type CallbackGetPaymentMethod = (status: number, response: {
accreditation_time: number;
additional_info_needed: string[];
deferred_capture: string;
financial_institutions: any[];
id: string;
max_allowed_amount: number;
min_allowed_amount: number;
name: string;
payment_type_id: string;
processing_modes: string[];
secure_thumbnail: string;
settings: Settings[];
status: string;
thumbnail: string;
error?: string;
cause?: Cause[] | Cause;
message?: string;
}) => void;
declare type Settings = {
bin: {
pattern: string;
installments_pattern: string;
exclusion_pattern: string;
};
card_number: {
length: number;
validation: string;
};
security_code: {
mode: string;
card_location: string;
length: number;
};
};
export {};
//# sourceMappingURL=getPaymentMethod.d.ts.map