Documentation
¶
Index ¶
- Constants
- Variables
- func DeleteCachedKey(key string)
- func GenerateHash(data url.Values, secret string) string
- func GetAllCachedKeys() []string
- func New() payment.Driver
- type GatewayPayData
- type GatewayRefundData
- type ManualNotice
- type Mockpay
- func (a *Mockpay) IsSupported(s config.Support) bool
- func (a *Mockpay) Pay(ctx echo.Context, cfg *config.Pay) (*config.PayResponse, error)
- func (a *Mockpay) PayNotify(ctx echo.Context) error
- func (a *Mockpay) PayQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)
- func (a *Mockpay) Refund(ctx echo.Context, cfg *config.Refund) (*config.Result, error)
- func (a *Mockpay) RefundNotify(ctx echo.Context) error
- func (a *Mockpay) RefundQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)
- func (a *Mockpay) SetAccount(account *config.Account) payment.Driver
- func (a *Mockpay) SetNotifyCallback(callback func(echo.Context) error) payment.Driver
- func (a *Mockpay) SubmitPayNotice(tradeNo string) error
- func (a *Mockpay) SubmitRefundNotice(refundNo string) error
- func (a *Mockpay) VerifySign(ctx echo.Context) error
Constants ¶
View Source
const Name = `mockpay`
Variables ¶
View Source
var DisableableFeatures = []map[string]string{ {`id`: config.SupportPayQuery.String(), `text`: echo.T(`查询付款结果`)}, {`id`: config.SupportPayNotify.String(), `text`: echo.T(`付款结果通知`)}, {`id`: config.SupportRefund.String(), `text`: echo.T(`退款功能`)}, {`id`: config.SupportRefundQuery.String(), `text`: echo.T(`查询退款结果`)}, {`id`: config.SupportRefundNotify.String(), `text`: echo.T(`退款结果通知`)}, }
Functions ¶
func DeleteCachedKey ¶
func DeleteCachedKey(key string)
func GetAllCachedKeys ¶
func GetAllCachedKeys() []string
Types ¶
type GatewayPayData ¶
type GatewayRefundData ¶
type ManualNotice ¶
type Mockpay ¶
type Mockpay struct {
// contains filtered or unexported fields
}
func (*Mockpay) RefundQuery ¶
func (*Mockpay) SetNotifyCallback ¶
func (*Mockpay) SubmitPayNotice ¶
func (*Mockpay) SubmitRefundNotice ¶
Click to show internal directories.
Click to hide internal directories.