nmi

package
v1.1.364 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NMIClient

type NMIClient struct {
	// contains filtered or unexported fields
}

NMIClient represents an HTTP client and the associated authentication information required for making a Direct Post API request.

func NewClient

func NewClient(env common.Environment, secretKey string) *NMIClient

NewClient returns a new client for making NMI Direct Post API requests for a given merchant using a specified secret key.

func NewWithHttpClient

func NewWithHttpClient(env common.Environment, secretKey string, httpClient *http.Client) *NMIClient

NewWithHttpClient returns a client for making NMI Direct Post API requests for a given merchant using a specified secret key. The provided HTTP client will be used to make the requests.

Jump to

Keyboard shortcuts

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