Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ReaderList = map[string]*ReaderData{
"verifone-p400": readerVerifoneP400,
}
ReaderList is a map containing all of the Stripe compatible reader types that we support in the CLI.
Functions ¶
func QuickstartP400 ¶
QuickstartP400 runs the quickstart interactive prompt sequence to walk the user through setting up a P400 reader
func ReaderNames ¶
func ReaderNames() []string
ReaderNames is a function that uses ReaderList to extract the human friendly names of the CLI supported readers. it returns a map of the human friendly reader names as strings
func ReaderTypeSelectPrompt ¶
ReaderTypeSelectPrompt prompts the user to choose which type of reader they want to set up currently the only supported choice is the Verifone P400
func SetTerminalSessionContext ¶
func SetTerminalSessionContext(cfg *config.Config) p400.TerminalSessionContext
SetTerminalSessionContext creates a data struct that contains the context of the user's current quickstart session it returns a TerminalSessionContext interface that is passed into most of the P400 reader related functions in the quickstart flow
Types ¶
type ReaderData ¶
ReaderData contains information about a specific Stripe compatible reader. An example is the Verifone P400.