Documentation ¶
Index ¶
- type Mugglepay
- func (m *Mugglepay) CancelOrder(orderID string) (structs.ServerOrder, error)
- func (m *Mugglepay) CheckOut(orderID, PayCurrency string) (structs.ServerOrder, error)
- func (m *Mugglepay) CreateOrder(order *structs.Order) (structs.ServerOrder, error)
- func (m *Mugglepay) Get(apiURL string, result interface{}) error
- func (m *Mugglepay) GetOrder(orderID string) (structs.ServerOrder, error)
- func (m *Mugglepay) GetStatus(orderID string) (structs.ServerOrder, error)
- func (m *Mugglepay) Post(apiURL string, result interface{}, body interface{}) error
- func (m *Mugglepay) Refund(orderID string) (structs.ServerRefund, error)
- func (m *Mugglepay) ReqURL(apiURL string) utils.ReqURL
- func (m *Mugglepay) Sent(orderID string) (structs.ServerOrder, error)
- func (m *Mugglepay) VerifyOrder(callback *structs.Callback) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mugglepay ¶
type Mugglepay struct { AppKey string APIURL string CallbackURL string CancelURL string SuccessURL string }
Mugglepay mugglepay操作
func (*Mugglepay) CancelOrder ¶
func (m *Mugglepay) CancelOrder(orderID string) (structs.ServerOrder, error)
CancelOrder 取消订单
func (*Mugglepay) CheckOut ¶
func (m *Mugglepay) CheckOut(orderID, PayCurrency string) (structs.ServerOrder, error)
CheckOut 切换网关支付方式
func (*Mugglepay) CreateOrder ¶
CreateOrder 创建订单,返回 ServerOrder
func (*Mugglepay) GetOrder ¶
func (m *Mugglepay) GetOrder(orderID string) (structs.ServerOrder, error)
GetOrder 根据网关订单编号获取 ServerOrder
func (*Mugglepay) GetStatus ¶
func (m *Mugglepay) GetStatus(orderID string) (structs.ServerOrder, error)
GetStatus 订单查询
func (*Mugglepay) Refund ¶
func (m *Mugglepay) Refund(orderID string) (structs.ServerRefund, error)
Refund 退款
Click to show internal directories.
Click to hide internal directories.