errors

package
v0.0.0-...-3e0f7d7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCode

type ErrorCode string

ErrorCode represents payment provider specific error

var (
	// IncorrectNum incorrect cc num
	IncorrectNum ErrorCode = "incorrect_number"
	// InvalidNum invalid cc num
	InvalidNum ErrorCode = "invalid_number"
	// InvalidExpM invalid exp month
	InvalidExpM ErrorCode = "invalid_expiry_month"
	// InvalidExpY invalid exp year
	InvalidExpY ErrorCode = "invalid_expiry_year"
	// InvalidCvc invalid cvc number
	InvalidCvc ErrorCode = "invalid_cvc"
	// ExpiredCard card is expired
	ExpiredCard ErrorCode = "expired_card"
	// IncorrectCvc incorrect cvc
	IncorrectCvc ErrorCode = "incorrect_cvc"
	// IncorrectZip incorrect zip code
	IncorrectZip ErrorCode = "incorrect_zip"
	// CardDeclined card declined
	CardDeclined ErrorCode = "card_declined"
	// Missing missing information
	Missing ErrorCode = "missing"
	// ProcessingErr processing error
	ProcessingErr ErrorCode = "processing_error"
	// RateLimit reached call rate limit
	RateLimit ErrorCode = "rate_limit"
)

func (ErrorCode) Error

func (e ErrorCode) Error() string

Jump to

Keyboard shortcuts

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