domain

package
v3.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: OSL-3.0 Imports: 0 Imported by: 8

Documentation

Index

Constants

View Source
const (
	// PaymentErrorCodeCancelled cancelled
	PaymentErrorCodeCancelled = "payment_cancelled"
	// PaymentErrorCodeAuthorizeFailed error
	PaymentErrorCodeAuthorizeFailed = "authorization_failed"
	// PaymentErrorCodeCaptureFailed error
	PaymentErrorCodeCaptureFailed = "capture_failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	ErrorMessage string
	ErrorCode    string
}

Error should be used by PaymentGateway to indicate that payment failed (so that the customer can see a speaking message)

func (*Error) Error

func (pe *Error) Error() string

Error getter

type Method

type Method struct {
	//A speaking title
	Title string
	//A unique Code
	Code string
}

Method contains information about a general payment method

Jump to

Keyboard shortcuts

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