paypalpayflow

package
v0.0.0-...-89aac52 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REFUND        = "C"
	AUTHORIZATION = "A"
	CAPTURE       = "D"
	VOID          = "V"
)

Variables

View Source
var (
	MITUnscheduled      string = "MITR"
	CITUnscheduled      string = "CITU"
	CITInitial          string = "CITI"
	CITInitialRecurring string = "CITR"
	MITRecurring        string = "MITR"
)

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

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
}

type Response

type Response map[string]string

Jump to

Keyboard shortcuts

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