cybersource

package
v0.0.0-...-54dc250 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(params Params) *Client

func (*Client) CapturePayment

func (c *Client) CapturePayment(requestID string, req *request.CapturePaymentRequest) (*response.CaptureResponse, int, error)

func (*Client) CreateCustomer

func (c *Client) CreateCustomer(req *request.CustomerRequest) (*response.CustomersResponse, int, error)

func (*Client) CreateCustomerPaymentInstrument

func (c *Client) CreateCustomerPaymentInstrument(customerID string, req *request.CustomerPaymentInstrumentRequest) (*response.CustomerPaymentInstrumentResponse, int, error)

func (*Client) DeleteCustomer

func (c *Client) DeleteCustomer(customerID string) (error, int)

func (*Client) GetPayment

func (c *Client) GetPayment(requestID string) (*response.GetPaymentResponse, int, error)

func (*Client) LookupBIN

func (*Client) ProcessCredit

func (c *Client) ProcessCredit(req *request.CreateCreditRequest) (*response.CreditResponse, int, error)

func (*Client) ProcessPayment

func (c *Client) ProcessPayment(req *request.CreatePaymentRequest) (*response.PaymentResponse, int, error)

func (*Client) RefreshPaymentStatus

func (c *Client) RefreshPaymentStatus(requestID string, request *request.RefreshPaymentStatusRequest) (*response.RefreshPaymentStatusResponse, int, error)

func (*Client) RefundCapture

func (c *Client) RefundCapture(requestID string, req *request.RefundRequest) (*response.RefundResponse, int, error)

func (*Client) RefundPayment

func (c *Client) RefundPayment(requestID string, req *request.RefundRequest) (*response.RefundResponse, int, error)

func (*Client) RetrieveCustomer

func (c *Client) RetrieveCustomer(customerID string) (*response.CustomersResponse, int, error)

func (*Client) RetrieveCustomerPaymentInstrument

func (c *Client) RetrieveCustomerPaymentInstrument(customerID string, paymentInstrumentTokenID string) (*response.CustomerPaymentInstrumentResponse, int, error)

func (*Client) RetrieveTransaction

func (c *Client) RetrieveTransaction(requestID string) (*response.TransactionDetails, int, error)

func (*Client) ReverseAuthorization

func (c *Client) ReverseAuthorization(requestID string, req *request.ReverseAuthRequest) (*response.PaymentResponse, int, error)

func (*Client) UpdateCustomer

func (c *Client) UpdateCustomer(customerID string, req *request.CustomerRequest) (*response.CustomersResponse, int, error)

func (*Client) VoidCapture

func (c *Client) VoidCapture(requestID string, req *request.VoidRequest) (*response.VoidResponse, int, error)

func (*Client) VoidCredit

func (c *Client) VoidCredit(requestID string, req *request.VoidRequest) (*response.VoidResponse, int, error)

func (*Client) VoidPayment

func (c *Client) VoidPayment(requestID string, req *request.VoidRequest) (*response.VoidResponse, int, error)

func (*Client) VoidRefund

func (c *Client) VoidRefund(requestID string, req *request.VoidRequest) (*response.VoidResponse, int, error)

type Params

type Params struct {
	MerchantKeyId     string
	MerchantSecretKey string
	MerchantId        string
	RequestHost       string
	IsDebugPrint      bool // 是否打印出网络请求包用语debug
}

Jump to

Keyboard shortcuts

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