Documentation ¶
Index ¶
- Constants
- Variables
- type PaypalPayflowClient
- func (client *PaypalPayflowClient) Authorize(request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)
- func (client *PaypalPayflowClient) AuthorizeWithContext(ctx context.Context, request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)
- func (client *PaypalPayflowClient) Capture(request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)
- func (client *PaypalPayflowClient) CaptureWithContext(ctx context.Context, request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)
- func (client *PaypalPayflowClient) Refund(request *sleet.RefundRequest) (*sleet.RefundResponse, error)
- func (client *PaypalPayflowClient) RefundWithContext(ctx context.Context, request *sleet.RefundRequest) (*sleet.RefundResponse, error)
- func (client *PaypalPayflowClient) Void(request *sleet.VoidRequest) (*sleet.VoidResponse, error)
- func (client *PaypalPayflowClient) VoidWithContext(ctx context.Context, request *sleet.VoidRequest) (*sleet.VoidResponse, error)
- type Request
- type Response
Constants ¶
View Source
const ( REFUND = "C" AUTHORIZATION = "A" CAPTURE = "D" VOID = "V" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PaypalPayflowClient ¶
type PaypalPayflowClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(partner string, password string, vendor string, user string, environment common.Environment) *PaypalPayflowClient
func NewWithHttpClient ¶
func NewWithHttpClient(partner string, password string, vendor string, user string, environment common.Environment, httpClient *http.Client) *PaypalPayflowClient
NewWithHttpClient uses authentication with custom http client
func (*PaypalPayflowClient) Authorize ¶
func (client *PaypalPayflowClient) Authorize(request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)
Authorize a transaction. This transaction must be captured to receive funds
func (*PaypalPayflowClient) AuthorizeWithContext ¶ added in v1.1.1297
func (client *PaypalPayflowClient) AuthorizeWithContext(ctx context.Context, request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error)
AuthorizeWithContext a transaction. This transaction must be captured to receive funds
func (*PaypalPayflowClient) Capture ¶
func (client *PaypalPayflowClient) Capture(request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)
Capture an authorized transaction
func (*PaypalPayflowClient) CaptureWithContext ¶ added in v1.1.1297
func (client *PaypalPayflowClient) CaptureWithContext(ctx context.Context, request *sleet.CaptureRequest) (*sleet.CaptureResponse, error)
CaptureWithContext an authorized transaction
func (*PaypalPayflowClient) Refund ¶
func (client *PaypalPayflowClient) Refund(request *sleet.RefundRequest) (*sleet.RefundResponse, error)
Refund a captured transaction
func (*PaypalPayflowClient) RefundWithContext ¶ added in v1.1.1297
func (client *PaypalPayflowClient) RefundWithContext(ctx context.Context, request *sleet.RefundRequest) (*sleet.RefundResponse, error)
RefundWithContext a captured transaction
func (*PaypalPayflowClient) Void ¶
func (client *PaypalPayflowClient) Void(request *sleet.VoidRequest) (*sleet.VoidResponse, error)
Void an authorized transaction
func (*PaypalPayflowClient) VoidWithContext ¶ added in v1.1.1297
func (client *PaypalPayflowClient) VoidWithContext(ctx context.Context, request *sleet.VoidRequest) (*sleet.VoidResponse, error)
VoidWithContext an authorized transaction
type Request ¶
type Request struct { TrxType string Amount *string Currency *string Verbosity *string Tender *string CreditCardNumber *string CardExpirationDate *string OriginalID *string BillToFirstName *string BillToLastName *string BillToZIP *string BillToState *string BillToStreet *string BillToStreet2 *string BillToCountry *string // country code CardOnFile *string TxID *string Comment1 *string // merchant order reference }
Click to show internal directories.
Click to hide internal directories.