cardvault

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCard

func AddCard(ctx context.Context, vaultRequest *PaymentRequest) (string, *http.Response, error)

Types

type CreditCard

type CreditCard struct {
	Number            string `json:"number"`
	FirstName         string `json:"first_name"`
	LastName          string `json:"last_name"`
	Month             string `json:"month"`
	Year              string `json:"year"`
	VerificationValue string `json:"verification_value"`
}

type Payment

type Payment struct {
	Amount      string      `json:"amount"`
	UniqueToken string      `json:"unique_token"`
	CreditCard  *CreditCard `json:"credit_card"`
}

type PaymentRequest

type PaymentRequest struct {
	Payment *Payment `json:"payment"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL