Documentation ¶
Index ¶
- type AliQueryResult
- type AliWebPayResult
- type ChargeClient
- func (pc *ChargeClient) Charge(data common.ReqData) interface{}
- func (pc *ChargeClient) CheckConfig()
- func (pc *ChargeClient) CheckSign(data string, sign string) error
- func (pc *ChargeClient) GetSign(m map[string]string) (string, error)
- func (pc *ChargeClient) IsOldPay() bool
- func (pc *ChargeClient) Md5Sign(signData string) string
- func (pc *ChargeClient) Rsa2Sign(signData string) string
- func (pc *ChargeClient) RsaSign(signData string) string
- func (pc *ChargeClient) Send() interface{}
- type ClientInterface
- type NotifyClient
- func (nc *NotifyClient) BuildSignData() string
- func (pc *NotifyClient) CheckConfig()
- func (nc *NotifyClient) GetNotifyData(b []byte) notify.NotifyProcessData
- func (nc *NotifyClient) IsOldPay() bool
- func (nc *NotifyClient) Notify(d []byte, process notify.NotifyInterface) string
- func (nc *NotifyClient) Send() interface{}
- type NotifyClientInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliQueryResult ¶
type AliQueryResult struct { TradeNo string `json:"trade_no"` OutTradeNo string `json:"out_trade_no"` OpenID string `json:"open_id"` BuyerLogonID string `json:"buyer_logon_id"` TradeStatus string `json:"trade_status"` TotalAmount string `json:"total_amount"` ReceiptAmount string `json:"receipt_amount"` BuyerPayAmount string `json:"BuyerPayAmount"` PointAmount string `json:"point_amount"` InvoiceAmount string `json:"invoice_amount"` SendPayDate string `json:"send_pay_date"` AlipayStoreID string `json:"alipay_store_id"` StoreID string `json:"store_id"` TerminalID string `json:"terminal_id"` FundBillList []struct { FundChannel string `json:"fund_channel"` Amount string `json:"amount"` } `json:"fund_bill_list"` StoreName string `json:"store_name"` BuyerUserID string `json:"buyer_user_id"` DiscountGoodsDetail string `json:"discount_goods_detail"` IndustrySepcDetail string `json:"industry_sepc_detail"` }
type AliWebPayResult ¶
type AliWebPayResult struct { NotifyTime string `json:"notify_time"` NotifyType string `json:"notify_type"` NotifyID string `json:"notify_id"` SignType string `json:"sign_type"` Sign string `json:"sign"` OutTradeNum string `json:"out_trade_no"` Subject string `json:"subject"` PayMentType string `json:"payment_type"` TradeNum string `json:"trade_no"` TradeStatus string `json:"trade_status"` GmtPayMent string `json:"gmt_payment"` GmtClose string `json:"gmt_close"` SellerEmail string `json:"seller_email"` BuyerEmail string `json:"buyer_email"` SellerID string `json:"seller_id"` BuyerID string `json:"buyer_id"` Price string `json:"price"` TotalFee string `json:"total_fee"` Quantity string `json:"quantity"` Body string `json:"body"` Discount string `json:"discount"` IsTotalFeeAdjust string `json:"is_total_fee_adjust"` UseCoupon string `json:"use_coupon"` RefundStatus string `json:"refund_status"` GmtRefund string `json:"gmt_refund"` GmtCreate string `json:"gmt_create"` }
AliWebPayResult 支付宝支付结果回调
type ChargeClient ¶
type ChargeClient struct { *common.ChargeClient *common.HttpClient ClientInterface *data.AliResResult PrivateKey *rsa.PrivateKey PublicKey *rsa.PublicKey }
调用方法的时候要指定是ClientInterface的方法, 这样才能实现调用到子集的数据 如果自身也实现了就可以实现不会报错的问题(子集继承上一层会继承到方法,实现会自动关联)
func NewChargeClient ¶
func NewChargeClient(configData common.BaseConfig, intface interface{}) *ChargeClient
func (*ChargeClient) Charge ¶
func (pc *ChargeClient) Charge(data common.ReqData) interface{}
对外的入口,接入请求数据
func (*ChargeClient) CheckSign ¶
func (pc *ChargeClient) CheckSign(data string, sign string) error
CheckSign 检测签名
func (*ChargeClient) GetSign ¶
func (pc *ChargeClient) GetSign(m map[string]string) (string, error)
GetSign 产生签名
func (*ChargeClient) IsOldPay ¶
func (pc *ChargeClient) IsOldPay() bool
func (*ChargeClient) Md5Sign ¶
func (pc *ChargeClient) Md5Sign(signData string) string
func (*ChargeClient) Rsa2Sign ¶
func (pc *ChargeClient) Rsa2Sign(signData string) string
func (*ChargeClient) RsaSign ¶
func (pc *ChargeClient) RsaSign(signData string) string
func (*ChargeClient) Send ¶
func (pc *ChargeClient) Send() interface{}
type ClientInterface ¶
type NotifyClient ¶
type NotifyClient struct { data.AliPayResult OriginData map[string]string *common.NotifyClient *common.SignHandle NotifyClientInterface PrivateKey *rsa.PrivateKey PublicKey *rsa.PublicKey }
func NewNotifyClient ¶
func NewNotifyClient(config common.BaseConfig, intface NotifyClientInterface) *NotifyClient
func (*NotifyClient) BuildSignData ¶
func (nc *NotifyClient) BuildSignData() string
func (*NotifyClient) GetNotifyData ¶
func (nc *NotifyClient) GetNotifyData(b []byte) notify.NotifyProcessData
func (*NotifyClient) IsOldPay ¶
func (nc *NotifyClient) IsOldPay() bool
func (*NotifyClient) Notify ¶
func (nc *NotifyClient) Notify(d []byte, process notify.NotifyInterface) string
func (*NotifyClient) Send ¶
func (nc *NotifyClient) Send() interface{}
type NotifyClientInterface ¶
Click to show internal directories.
Click to hide internal directories.