rocketgate

package
v1.1.1083 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RocketgateClient

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

RocketgateClient represents an HTTP client and the associated authentication information required for making an API request.

func NewClient

func NewClient(
	env common.Environment,
	merchantID string,
	merchantPassword string,
	merchantAccount *string,
) *RocketgateClient

NewClient creates a Rocketgate client

func NewWithHttpClient

func NewWithHttpClient(
	env common.Environment,
	merchantID string,
	merchantPassword string,
	merchantAccount *string,
	httpClient *http.Client,
) *RocketgateClient

NewWithHttpClient creates a Rocketgate client for custom behavior

func (*RocketgateClient) Authorize

Authorize a transaction. This transaction must be captured to receive funds

func (*RocketgateClient) Capture

func (client *RocketgateClient) Capture(request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)

Capture an authorized transaction

func (*RocketgateClient) Refund

func (client *RocketgateClient) Refund(request *sleet.RefundRequest) (*sleet.RefundResponse, error)

Refund a captured transaction

func (*RocketgateClient) Void

func (client *RocketgateClient) Void(request *sleet.VoidRequest) (*sleet.VoidResponse, error)

Void an authorized transaction

Jump to

Keyboard shortcuts

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