rocketgate

package
v1.1.1362 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 8 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) AuthorizeWithContext added in v1.1.1297

func (client *RocketgateClient) AuthorizeWithContext(_ context.Context, request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)

AuthorizeWithContext a transaction. This transaction must be captured to receive funds NOTE -- RocketGate's SDK does not support context, this method exists to fulfill the ClientWithContext interface

func (*RocketgateClient) Capture

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

Capture an authorized transaction

func (*RocketgateClient) CaptureWithContext added in v1.1.1297

func (client *RocketgateClient) CaptureWithContext(_ context.Context, request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)

CaptureWithContext an authorized transaction NOTE -- RocketGate's SDK does not support context, this method exists to fulfill the ClientWithContext interface

func (*RocketgateClient) Refund

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

Refund a captured transaction

func (*RocketgateClient) RefundWithContext added in v1.1.1297

func (client *RocketgateClient) RefundWithContext(_ context.Context, request *sleet.RefundRequest) (*sleet.RefundResponse, error)

RefundWithContext a captured transaction NOTE -- RocketGate's SDK does not support context, this method exists to fulfill the ClientWithContext interface

func (*RocketgateClient) Void

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

Void an authorized transaction

func (*RocketgateClient) VoidWithContext added in v1.1.1297

func (client *RocketgateClient) VoidWithContext(_ context.Context, request *sleet.VoidRequest) (*sleet.VoidResponse, error)

VoidWithContext an authorized transaction NOTE -- RocketGate's SDK does not support context, this method exists to fulfill the ClientWithContext interface

Jump to

Keyboard shortcuts

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