///
interface prepare {
amount: number;
clientTransactionId: string;
amountWithoutTax?: number;
amountWithTax?: number;
tax?: number;
service?: number;
tip?: number;
currency?: "USD";
storeId?: string;
reference?: string;
phoneNumber?: string;
email?: string;
documentId?: string;
}
declare global {
interface Window {
payphone: {
Button: (data: {
token: string;
btnHorizontal: boolean;
btnCard: boolean;
createOrder: (actions: {
prepare: (data: prepare) => Promise;
}) => {};
onComplete: (model: {
id: number;
clientTxId: string;
ctoken: null;
message: string;
}, actions: any) => any;
}) => {
render: (div: string) => any;
};
};
}
}
interface responsePayphone {
statusCode: number;
transactionStatus: string;
clientTransactionId: string;
authorizationCode: string;
transactionId: string;
email: string;
phoneNumber: string;
document: string;
amount: string;
cardType: string;
cardBrandCode: string;
cardBrand: string;
bin: string;
lastDigits: string;
deferredCode: string;
deferredMessage: string;
deferred: string;
message: string;
messageCode: string;
currency: string;
optionalParameter1: string;
reference: string;
}
export declare const usePayphone: () => {
payphone: responsePayphone | undefined;
};
declare function ButtonPP({ prepare }: {
prepare: prepare;
}): JSX.Element;
export default ButtonPP;