payutils

package module
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

README

payutils

Golang common pay utils

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlipayRespCodeInvalid = model.ErrAlipayRespCodeInvalid
View Source
var ErrMissAllowedOrigin = model.ErrMissAllowedOrigin
View Source
var ErrMissEndpoint = model.ErrMissEndpoint
View Source
var ErrMissOrderHandler = model.ErrMissOrderHandler
View Source
var ErrOpenIDIsRequired = model.ErrOpenIDIsRequired
View Source
var ErrWeChatPayRespCodeInvalid = model.ErrWeChatPayRespCodeInvalid
View Source
var ErrWeChatRedirectURIMismatch = model.ErrWeChatRedirectURIMismatch

Functions

func CreateClient

func CreateClient(config model.Config) (*client.Client, error)

CreateClient creates a unified client and register route

Types

type AlipayConfig

type AlipayConfig = model.AlipayConfig

type Client

type Client = client.Client

type Config

type Config = model.Config

type OrderInfo

type OrderInfo = model.OrderInfo

type TradeStatus

type TradeStatus = model.TradeStatus
const (
	TradePending  TradeStatus = model.TradePending
	TradeSuccess  TradeStatus = model.TradeSuccess
	TradeClosed   TradeStatus = model.TradeClosed
	TradeFinished TradeStatus = model.TradeFinished
)

type WeChatPayConfig

type WeChatPayConfig = model.WeChatPayConfig

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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