Documentation ¶
Index ¶
- type StripeClient
- func (client *StripeClient) Authorize(request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)
- func (client *StripeClient) Capture(request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)
- func (client *StripeClient) Refund(request *sleet.RefundRequest) (*sleet.RefundResponse, error)
- func (client *StripeClient) Void(request *sleet.VoidRequest) (*sleet.VoidResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StripeClient ¶
type StripeClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(apiKey string) *StripeClient
func NewWithHTTPClient ¶
func NewWithHTTPClient(apiKey string, httpClient *http.Client) *StripeClient
func (*StripeClient) Authorize ¶
func (client *StripeClient) Authorize(request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)
func (*StripeClient) Capture ¶
func (client *StripeClient) Capture(request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)
func (*StripeClient) Refund ¶
func (client *StripeClient) Refund(request *sleet.RefundRequest) (*sleet.RefundResponse, error)
func (*StripeClient) Void ¶
func (client *StripeClient) Void(request *sleet.VoidRequest) (*sleet.VoidResponse, error)
Click to show internal directories.
Click to hide internal directories.