forked from BoltApp/braintree-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client_token.go
21 lines (18 loc) · 901 Bytes
/
client_token.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package braintree
// ClientTokenRequest represents the parameters for the client token request.
type ClientTokenRequest struct {
XMLName string `xml:"client-token"`
CustomerID string `xml:"customer-id,omitempty"`
MerchantAccountID string `xml:"merchant-account-id,omitempty"`
Options *ClientTokenRequestOptions `xml:"options,omitempty"`
Version int `xml:"version"`
}
type clientToken struct {
ClientToken string `xml:"value"`
}
// ClientTokenRequestOptions represents options map for the client token request.
type ClientTokenRequestOptions struct {
FailOnDuplicatePaymentMethod bool `xml:"fail-on-duplicate-payment-method,omitempty"`
MakeDefault bool `xml:"make-default,omitempty"`
VerifyCard *bool `xml:"verify-card,omitempty"`
}