Documentation ¶
Index ¶
- type RocketgateClient
- func (client *RocketgateClient) Authorize(request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)
- func (client *RocketgateClient) Capture(request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)
- func (client *RocketgateClient) Refund(request *sleet.RefundRequest) (*sleet.RefundResponse, error)
- func (client *RocketgateClient) Void(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) 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
Click to show internal directories.
Click to hide internal directories.