forked from wgltony/react-native-braintree-dropin-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js.flow
42 lines (39 loc) · 944 Bytes
/
index.js.flow
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
type ShowOptions = {|
clientToken: string,
threeDSecure?: {|
amount: number,
|},
vaultManager?: boolean,
cardDisabled?: boolean,
googlePay?: boolean,
orderTotal?: string,
currencyCode?: string,
googlePayMerchantId?: string,
payPal?: boolean,
applePay?: boolean,
merchantIdentifier?: string,
countryCode?: string,
merchantName?: string,
darkTheme?: boolean,
fontFamily?: string,
boldFontFamily?: string,
|};
type CardInfo = {|
number: string,
expirationMonth: string,
expirationYear: string,
cvv: string,
postalCode: string,
|};
type ShowResult = {|
nonce: string,
description: string,
type: string,
isDefault: boolean,
deviceData: string,
|};
declare module.exports: {
show: (options: ShowOptions) => Promise<ShowResult>,
fetchMostRecentPaymentMethod: (clientToken: string) => Promise<ShowResult>,
tokenizeCard: (clientToken: string, cardInfo: CardInfo) => Promise<string>,
};