Documentation ¶
Index ¶
- func CreateOrder(c *pay.Client, ctx context.Context, req JspCreateOrderReq) (response *jsapi.PrepayWithRequestPaymentResponse, err error)
- func Refund(c *pay.Client, ctx context.Context, req RefundReq) (resp *refunddomestic.Refund, result *core.APIResult, err error)
- type JspCreateOrderReq
- type PayResult
- type RefundReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrder ¶
func CreateOrder(c *pay.Client, ctx context.Context, req JspCreateOrderReq) (response *jsapi.PrepayWithRequestPaymentResponse, err error)
CreateOrder 创建订单
Types ¶
type JspCreateOrderReq ¶
type PayResult ¶
type PayResult struct { Mchid string `json:"mchid"` Appid string `json:"appid"` OutTradeNo string `json:"out_trade_no"` TransactionID string `json:"transaction_id"` // 微信交易编号 TradeType string `json:"trade_type"` TradeState string `json:"trade_state"` TradeStateDesc string `json:"trade_state_desc"` BankType string `json:"bank_type"` Attach string `json:"attach"` SuccessTime time.Time `json:"success_time"` Payer struct { Openid string `json:"openid"` } `json:"payer"` Amount struct { Total int `json:"total"` PayerTotal int `json:"payer_total"` Currency string `json:"currency"` PayerCurrency string `json:"payer_currency"` } `json:"amount"` }
Click to show internal directories.
Click to hide internal directories.