-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathindex.d.ts
More file actions
26 lines (21 loc) · 742 Bytes
/
index.d.ts
File metadata and controls
26 lines (21 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import * as React from "react";
import {
Options as BraintreeOptions,
Dropin,
PaymentMethodRequestablePayload,
PaymentOptionSelectedPayload,
} from "braintree-web-drop-in";
export type Options = Omit<BraintreeOptions, "container">;
export interface IDropInProps {
options: Options;
// @deprecated: Include inside options
preselectVaultedPaymentMethod?: boolean;
onInstance?: (instance: Dropin) => void;
onError?: (error: any) => void;
onNoPaymentMethodRequestable?: () => void;
onPaymentMethodRequestable?: (
payload: PaymentMethodRequestablePayload
) => void;
onPaymentOptionSelected?: (payload: PaymentOptionSelectedPayload) => void;
}
export default class DropIn extends React.Component<IDropInProps> {}