Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateHash(data url.Values, secret string) string
- func New() payment.Driver
- func SetDefaults(a *config.Account)
- type XunHuPay
- func (a *XunHuPay) Client() *resty.Request
- func (a *XunHuPay) IsSupported(s config.Support) bool
- func (a *XunHuPay) Pay(ctx echo.Context, cfg *config.Pay) (*config.PayResponse, error)
- func (a *XunHuPay) PayNotify(ctx echo.Context) error
- func (a *XunHuPay) PayQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)
- func (a *XunHuPay) Refund(ctx echo.Context, cfg *config.Refund) (*config.Result, error)
- func (a *XunHuPay) RefundNotify(ctx echo.Context) error
- func (a *XunHuPay) RefundQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)
- func (a *XunHuPay) SetAccount(account *config.Account) payment.Driver
- func (a *XunHuPay) SetNotifyCallback(callback func(echo.Context) error) payment.Driver
- func (a *XunHuPay) VerifySign(ctx echo.Context) error
Constants ¶
View Source
const Name = `xunhupay`
Variables ¶
View Source
var ( SandboxURL = `https://api.diypc.com.cn` // 测试环境接口 ProductionURL = `https://api.xunhupay.com` // 生产环境接口 APIPay = `/payment/do.html` APIQuery = `/payment/query.html` )
Functions ¶
func SetDefaults ¶ added in v0.2.2
Types ¶
type XunHuPay ¶
type XunHuPay struct {
// contains filtered or unexported fields
}
func (*XunHuPay) IsSupported ¶ added in v0.3.0
func (*XunHuPay) PayNotify ¶
PayNotify 付款回调处理 documentation https://www.xunhupay.com/doc/api/pay.html
func (*XunHuPay) RefundNotify ¶
RefundNotify 退款回调处理 documentation 不支持
func (*XunHuPay) RefundQuery ¶
RefundQuery 退款查询
func (*XunHuPay) SetNotifyCallback ¶
Click to show internal directories.
Click to hide internal directories.