forked from stripe/stripe-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththree_d_secure.go
29 lines (26 loc) · 1.1 KB
/
three_d_secure.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
Amount uint64 `json:"amount"`
Card string `json:"card"`
Currency Currency `json:"currency"`
Customer string `json:"customer"`
ReturnURL string `json:"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"`
Currency Currency `json:"currency"`
Created int64 `json:"created"`
ID string `json:"id"`
Live bool `json:"livemode"`
RedirectURL string `json:"redirect_url"`
Supported string `json:"supported"`
Status ThreeDSecureStatus `json:"status"`
}