-
Notifications
You must be signed in to change notification settings - Fork 461
/
threedsecure.go
29 lines (26 loc) · 1.1 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 *int64 `form:"amount"`
Card *string `form:"card"`
Currency *string `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 int64 `json:"amount"`
Authenticated bool `json:"authenticated"`
Card *Card `json:"card"`
Created int64 `json:"created"`
Currency Currency `json:"currency"`
ID string `json:"id"`
Livemode bool `json:"livemode"`
RedirectURL string `json:"redirect_url"`
Status ThreeDSecureStatus `json:"status"`
Supported string `json:"supported"`
}