forked from azmenak/react-stripe-checkout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
64 lines (60 loc) · 1.69 KB
/
index.d.ts
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
declare module "react-stripe-checkout" {
export interface Card {
id: string
object: string
address_city: string | null
address_country: string | null
address_line1: string | null
address_line1_check: string | null
address_line2: string | null
address_state: string | null
address_zip: string | null
address_zip_check: string | null
brand: string
country: string
cvc_check: string
dynamic_last4: string | null
exp_month: number
exp_year: number
funding: string
last4: string
metadata: {}
name: string
tokenization_method: string | null
}
export interface Token {
id: string
object: string
card: Card
client_ip: string
created: number
email: string
livemode: boolean
type: string
used: boolean
}
export interface StripeCheckoutProps {
token(token: Token)
stripeKey: string
label?: string
name?: string
ComponentClass?: string
description?: string
image?: string
panelLabel?: string
amount?: number
currency?: string
locale?: string
email?: string
shippingAddress?: boolean
billingAddress?: boolean
zipCode?: boolean
alipay?: boolean
bitcoin?: boolean
allowRememberMe?: boolean
reconfigureOnUpdate?: boolean
triggerEvent?: "onTouchTap" | "onClick" | "onTouchStart"
}
import React = require("react")
export default class StripeCheckout extends React.Component<StripeCheckoutProps, Object> {}
}