bluesnap

package
v0.0.0-...-2e24adf Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlueSnap

type BlueSnap struct {
	STOREID     string
	BSAPIUSER   string
	BSAPIPASS   string
	BSENDPOINT  string
	BSPRODUCTID string
	Test        bool
}

func (*BlueSnap) CreateTransaction

func (b *BlueSnap) CreateTransaction(shopperId string, amount float64) (string, error)

func (*BlueSnap) CreateVaultedShopper

func (b *BlueSnap) CreateVaultedShopper(bsCardToken, bsSecurityToken, expMonth, expYear string, cardType string, user *models.User) (string, error)

func (*BlueSnap) GetCards

func (b *BlueSnap) GetCards(shopperId string) (c *CardList, err error)

func (*BlueSnap) Init

func (b *BlueSnap) Init()

type Card

type Card struct {
	ID          string `json:"id"`
	Month       uint8  `json:"exp_month"`
	Year        uint16 `json:"exp_year"`
	Fingerprint string `json:"fingerprint"`
	LastFour    string `json:"last4"`
	Brand       string `json:"brand"`
	City        string `json:"address_city"`
	Country     string `json:"address_country"`
	Address1    string `json:"address_line1"`
	Address2    string `json:"address_line2"`
	State       string `json:"address_state"`
	Zip         string `json:"address_zip"`
	CardCountry string `json:"country"`
	Name        string `json:"name"`
	DynLastFour string `json:"dynamic_last4"`
	Deleted     bool   `json:"deleted"`
}

type CardList

type CardList struct {
	Values []*Card `json:"data"`
}

CardList is a list object for cards.

Jump to

Keyboard shortcuts

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