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.
Click to show internal directories.
Click to hide internal directories.