Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplePayTokenData ¶ added in v1.0.0
type ApplePayTokenData struct { Version string `json:"version,omitempty"` Data string `json:"data,omitempty"` Signature string `json:"signature,omitempty"` Header map[string]string `json:"header,omitempty"` }
func (*ApplePayTokenData) GetType ¶ added in v1.0.1
func (t *ApplePayTokenData) GetType() TokenType
type CardTokenRequest ¶ added in v1.0.0
type CardTokenRequest struct { Type TokenType `json:"type" binding:"required"` Number string `json:"number" binding:"required"` ExpiryMonth int `json:"expiry_month" binding:"required"` ExpiryYear int `json:"expiry_year" binding:"required"` Name string `json:"name,omitempty"` CVV string `json:"cvv,omitempty"` BillingAddress *common.Address `json:"billing_address,omitempty"` Phone *common.Phone `json:"phone,omitempty"` }
type CardTokenResponse ¶ added in v1.0.0
type CardTokenResponse struct { HttpMetadata common.HttpMetadata Type TokenType `json:"type,omitempty"` Token string `json:"token" binding:"required"` ExpiresOn time.Time `json:"expires_on,omitempty"` ExpiryMonth int `json:"expiry_month,omitempty"` ExpiryYear int `json:"expiry_year,omitempty"` Scheme string `json:"scheme,omitempty"` Last4 string `json:"last4,omitempty"` Bin string `json:"bin,omitempty"` CardType common.CardType `json:"card_type,omitempty"` CardCategory common.CardCategory `json:"card_category,omitempty"` Issuer string `json:"issuer,omitempty"` IssuerCountry string `json:"issuer_country,omitempty"` ProductID string `json:"product_id,omitempty"` ProductType string `json:"product_type,omitempty"` TokenFormat string `json:"token_format,omitempty"` Name string `json:"name,omitempty"` BillingAddress *common.Address `json:"billing_address,omitempty"` Phone *common.Phone `json:"phone,omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(configuration *configuration.Configuration, apiClient client.HttpClient) *Client
func (*Client) RequestCardToken ¶ added in v1.0.0
func (c *Client) RequestCardToken(request CardTokenRequest) (*CardTokenResponse, error)
func (*Client) RequestWalletToken ¶ added in v1.0.0
func (c *Client) RequestWalletToken(request WalletTokenRequest) (*CardTokenResponse, error)
type GooglePayTokenData ¶ added in v1.0.0
type GooglePayTokenData struct { Signature string `json:"data,omitempty"` ProtocolVersion string `json:"protocolVersion,omitempty"` SignedMessage string `json:"signedMessage,omitempty"` }
func (*GooglePayTokenData) GetType ¶ added in v1.0.1
func (t *GooglePayTokenData) GetType() TokenType
type WalletTokenRequest ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.