forked from stripe/stripe-go
/
threedsecure.go
29 lines (26 loc) · 1.11 KB
/
threedsecure.go
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
package stripe
type ThreeDSecureStatus string
// ThreeDSecureParams is the set of parameters that can be used when creating a 3DS object.
// For more details see https://stripe.com/docs/api#create_three_d_secure.
type ThreeDSecureParams struct {
Params `form:"*"`
Amount uint64 `form:"amount"`
Card string `form:"card"`
Currency Currency `form:"currency"`
Customer string `form:"customer"`
ReturnURL string `form:"return_url"`
}
// ThreeDSecure is the resource representing a Stripe 3DS object
// For more details see https://stripe.com/docs/api#three_d_secure.
type ThreeDSecure struct {
Amount uint64 `json:"amount"`
Authenticated bool `json:"authenticated"`
Card *Card `json:"card"`
Created int64 `json:"created"`
Currency Currency `json:"currency"`
ID string `json:"id"`
Live bool `json:"livemode"`
RedirectURL string `json:"redirect_url"`
Status ThreeDSecureStatus `json:"status"`
Supported string `json:"supported"`
}