Documentation ¶
Index ¶
- func CallbackAlipay(w http.ResponseWriter, r *http.Request, getKey GetAlipayPubKey, ...) error
- func CheckService(w http.ResponseWriter, r *http.Request, ...) error
- func GenRsaSha256Sign(priKey string, m map[string]string) string
- func GenStrRsaSha256Sign(priKey string, signData string) string
- func OrderSettle(baseParam BaseParam, settleParam OrderSettleParam, priKey string) (code int, msg string, tradeNo string)
- func ToURL(payUrl string, m map[string]string) string
- type AlipayNoticeParam
- type BaseParam
- type CheckServiceBizContent
- type GetAlipayPubKey
- type OrderSettleParam
- type OrderSettleParamDetailInfo
- type OrderSettleResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallbackAlipay ¶
func CallbackAlipay(w http.ResponseWriter, r *http.Request, getKey GetAlipayPubKey, busCallback common.BusCallBack) error
func CheckService ¶
func GenRsaSha256Sign ¶
GenSign 产生签名
func GenStrRsaSha256Sign ¶
GenSign 产生签名
func OrderSettle ¶
Types ¶
type AlipayNoticeParam ¶
type AlipayNoticeParam struct { NotifyTime string NotifyType string NotifyId string SignType string Sign string TradeNo string AppId string OutTradeNo string OutBizNo string BuyerId string BuyerLogonId string SellerId string SellerEmail string TradeStatus string TotalAmount float32 ReceiptAmount float32 InvoiceAmount float32 BuyerPayAmount float32 PointAmount float32 RefundFee float32 SendBackFee float32 Subject string Body string GmtCreate string GmtPayment string GmtRefund string GmtClose string FundBillList string }
type BaseParam ¶
type BaseParam struct { AppId string `json:"app_id"` Method string `json:"method"` Format string `json:"format,omitempty"` Charset string `json:"charset"` SignType string `json:"sign_type"` Sign string `json:"sign"` Timestamp string `json:"timestamp"` Version string `json:"version"` AppAuthToken string `json:"app_auth_token,omitempty"` BizContent string `json:"biz_content"` }
type CheckServiceBizContent ¶
type CheckServiceBizContent struct { AppId string `xml:"AppId,omitempty"` FromUserId string `xml:"FromUserId,omitempty"` CreateTime string `xml:"CreateTime,omitempty"` MsgType string `xml:"MsgType,omitempty"` EventType string `xml:"EventType,omitempty"` ActionParam string `xml:"ActionParam,omitempty"` AgreementId string `xml:"AgreementId,omitempty"` AccountNo string `xml:"AccountNo,omitempty"` }
支付宝服务窗验证参数:alipay.service.check
type OrderSettleParam ¶
type OrderSettleParam struct { OutRequestNo string `json:"out_request_no"` TradeNo string `json:"trade_no"` RoyaltyParameters []OrderSettleParamDetailInfo `json:"royalty_parameters"` OperatorId string `json:"operator_id,omitempty"` }
Click to show internal directories.
Click to hide internal directories.