pkg

package
v0.0.0-...-85b3fc2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NULL       = ""
	DebugOn    = true
	DebugOff   = false
	TimeLayout = time.DateTime

	Online  = true
	SandBox = false
)

Variables

View Source
var (
	ErrUnmarshal       = errors.New("json unmarshal error")
	ErrMissParam       = errors.New("miss param error")
	ErrGetSignData     = errors.New("get signature data error")
	ErrCertNotMatch    = errors.New("cert not match error")
	ErrVerifySignature = errors.New("verify signature error")

	ErrMissingInitParams = errors.New("缺少初始化必备参数")
	ErrMissingInitAppid  = errors.New("缺少 appid")
	ErrMissingInitLogger = errors.New("未设置 logger")
	ErrMissingInitHttp   = errors.New("未设置 http client")
	ErrPhrasePrivateKey  = errors.New("私钥格式有误,请检查")
)
View Source
var (
	ErrAliBadResponse       = errors.New("alipay: bad response")
	ErrAliSignNotFound      = errors.New("alipay: sign content not found")
	ErrAliPublicKeyNotFound = errors.New("alipay: alipay public key not found")
)
View Source
var (
	ErrPaypalFunctionNotImplemented = errors.New("paypal: function not implemented yet")

	ErrPaypalNothingToChange             = errors.New("paypal: nothing to change")
	ErrPaypalMissingOrderId              = errors.New("paypal: missing order id")
	ErrPaypalMissingInvoiceId            = errors.New("paypal: missing invoice id")
	ErrPaypalMissingTransactionId        = errors.New("paypal: missing transaction id")
	ErrPaypalMissingTemplateId           = errors.New("paypal: missing template id")
	ErrPaypalMissingInvoiceTransactionId = errors.New("paypal: missing invoice or transaction id")
	ErrPaypalMissingRefundId             = errors.New("paypal: missing refund id")
	ErrPaypalMissingCaptureId            = errors.New("paypal: missing capture id")
	ErrPaypalMissingAuthorizeId          = errors.New("paypal: missing authorize id")
	ErrPaypalMissingPayoutBatchId        = errors.New("paypal: missing payout batch id")
	ErrPaypalMissingPayoutItemId         = errors.New("paypal: missing payout item id")
	ErrPaypalMissingSubscriptionId       = errors.New("paypal: missing subscription id")
	ErrPaypalMissingPlanId               = errors.New("paypal: missing plan id")
	ErrPaypalMissingProductId            = errors.New("paypal: missing product id")
	ErrPaypalMissingQueryId              = errors.New("paypal: missing query id")
	ErrPaypalMissingDisputeId            = errors.New("paypal: missing dispute id")
)

Functions

func WrapError

func WrapError(info string, err error) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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