checkout

package
v0.8.38 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkout

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

func NewCheckout

func NewCheckout(secretKey string, publicKey *string, environment string, webhookSecrets map[string]string) *Checkout

func (*Checkout) CheckWebhookKey

func (c *Checkout) CheckWebhookKey(keyCode, key string) bool

func (*Checkout) RequestPayment

func (c *Checkout) RequestPayment(source interface{}, amount uint64, currency string, reference string, customer *payments.Customer, metadata map[string]string) *payments.Response

type ICheckout

type ICheckout interface {
	CheckWebhookKey(keyCode, key string) bool
	RequestPayment(source interface{}, amount uint64, currency string, reference string, customer *payments.Customer, metadata map[string]string) *payments.Response
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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