Documentation ¶
Index ¶
- type RocketgateClient
- func (client *RocketgateClient) Authorize(request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)
- func (client *RocketgateClient) AuthorizeWithContext(_ context.Context, request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)
- func (client *RocketgateClient) Capture(request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)
- func (client *RocketgateClient) CaptureWithContext(_ context.Context, request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)
- func (client *RocketgateClient) Refund(request *sleet.RefundRequest) (*sleet.RefundResponse, error)
- func (client *RocketgateClient) RefundWithContext(_ context.Context, request *sleet.RefundRequest) (*sleet.RefundResponse, error)
- func (client *RocketgateClient) Void(request *sleet.VoidRequest) (*sleet.VoidResponse, error)
- func (client *RocketgateClient) VoidWithContext(_ context.Context, request *sleet.VoidRequest) (*sleet.VoidResponse, error)
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 ¶
func (client *RocketgateClient) Authorize(request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)
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