Documentation ¶
Index ¶
- type FakeCheckoutClient
- func (c *FakeCheckoutClient) CheckWebhookKey(keyCode, key string) bool
- func (c *FakeCheckoutClient) CreateInstrument(request *instruments.Request) (*instruments.Response, error)
- func (c *FakeCheckoutClient) CreateToken(request *tokens.Request) (string, error)
- func (c *FakeCheckoutClient) DeleteCustomerInstrument(instrumentID string) bool
- func (c *FakeCheckoutClient) GetCustomer(idOrEmail string) (bool, *checkout.CustomerResponse)
- func (c *FakeCheckoutClient) GetInstrument(sourceID string) (*instruments.Response, error)
- func (c *FakeCheckoutClient) GetPaymentDetail(paymentID string) (*payments.PaymentResponse, error)
- func (c *FakeCheckoutClient) RequestPayment(request *payments.Request) *payments.Response
- func (c *FakeCheckoutClient) RequestRefunds(amount uint64, paymentID, reference string, metadata map[string]string) *payments.RefundsResponse
- func (c *FakeCheckoutClient) SaveGetClient(customerData *checkout.SaveCustomerRequest) (created bool, customer *checkout.CustomerResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCheckoutClient ¶
func (*FakeCheckoutClient) CheckWebhookKey ¶
func (c *FakeCheckoutClient) CheckWebhookKey(keyCode, key string) bool
func (*FakeCheckoutClient) CreateInstrument ¶ added in v0.9.41
func (c *FakeCheckoutClient) CreateInstrument(request *instruments.Request) (*instruments.Response, error)
func (*FakeCheckoutClient) CreateToken ¶ added in v0.9.41
func (c *FakeCheckoutClient) CreateToken(request *tokens.Request) (string, error)
func (*FakeCheckoutClient) DeleteCustomerInstrument ¶ added in v0.9.20
func (c *FakeCheckoutClient) DeleteCustomerInstrument(instrumentID string) bool
func (*FakeCheckoutClient) GetCustomer ¶ added in v0.9.41
func (c *FakeCheckoutClient) GetCustomer(idOrEmail string) (bool, *checkout.CustomerResponse)
func (*FakeCheckoutClient) GetInstrument ¶ added in v0.9.50
func (c *FakeCheckoutClient) GetInstrument(sourceID string) (*instruments.Response, error)
func (*FakeCheckoutClient) GetPaymentDetail ¶ added in v0.9.55
func (c *FakeCheckoutClient) GetPaymentDetail(paymentID string) (*payments.PaymentResponse, error)
func (*FakeCheckoutClient) RequestPayment ¶
func (c *FakeCheckoutClient) RequestPayment(request *payments.Request) *payments.Response
func (*FakeCheckoutClient) RequestRefunds ¶ added in v0.9.16
func (c *FakeCheckoutClient) RequestRefunds(amount uint64, paymentID, reference string, metadata map[string]string) *payments.RefundsResponse
func (*FakeCheckoutClient) SaveGetClient ¶ added in v0.9.41
func (c *FakeCheckoutClient) SaveGetClient(customerData *checkout.SaveCustomerRequest) (created bool, customer *checkout.CustomerResponse)
Click to show internal directories.
Click to hide internal directories.