Documentation ¶
Index ¶
Constants ¶
View Source
const ( WebPayChannelH5 = WebPayChannel(iota) // 浏览器h5 WebPayChannelWeChatMp // 微信公众号 )
Variables ¶
This section is empty.
Functions ¶
func GeneratePem ¶
Types ¶
type PayNotify ¶
type PayNotify struct { Charset string SignType string Sign string Data *PayNotifyData // contains filtered or unexported fields }
type PayNotifyData ¶
type PayNotifyData struct { Head PayNotifyDataHead Body PayNotifyDataBody }
type PayNotifyDataBody ¶
type PayNotifyDataBody struct { Mid string `json:"mid"` OrderCode string `json:"orderCode"` TotalAmount string `json:"totalAmount"` OrderStatus string `json:"orderStatus"` TradeNo string `json:"tradeNo"` SettleAmount string `json:"settleAmount"` BuyerPayAmount string `json:"buyerPayAmount"` DiscAmount string `json:"discAmount"` PayTime string `json:"payTime"` ClearDate string `json:"clearDate"` AccNo string `json:"accNo"` MidFee string `json:"midFee"` ExtraFee string `json:"extraFee"` SpecialFee string `json:"specialFee"` PlMidFee string `json:"plMidFee"` BankSerial string `json:"bankserial"` TxnCompleteTime string `json:"txnCompleteTime"` PayOrderCode string `json:"payordercode"` ExternalProductCode string `json:"externalProductCode"` CardNo string `json:"cardNo"` CreditFlag string `json:"creditFlag"` Bid string `json:"bid"` Extend string `json:"extend"` FundBillList string `json:"fundBillList"` PayDetail string `json:"payDetail"` BenefitAmount string `json:"benefitAmount"` RemittanceCode string `json:"remittanceCode"` AccLogonNo string `json:"accLogonNo"` }
type PayNotifyDataHead ¶
type Service ¶
type Service struct { MerId string // 商户号 AppPrivateKeyPath string // 应用私钥路径 SandPublicKeyPath string // 杉德公钥路径 }
func NewService ¶
func (*Service) PayNotifyResponse ¶
func (*Service) PayNotifyVerifySign ¶
type WebPayChannel ¶
type WebPayChannel uint8
Click to show internal directories.
Click to hide internal directories.