UNPKG

react-native-braintree-dropin-ui

Version:

> React Native integration of Braintree Drop-in IOS V4 ANDROID V2 (Apple Pay &Android Pay Enabled)

43 lines (39 loc) 944 B
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>, };