Documentation ¶
Index ¶
- func CreateAliPayPayInfo(tradeNo, subject, totalFee, body string) string
- func CreateBbnPayInfo(GoodsName, PcorderId, PcuserId string, money string) (payInfo string, err error)
- func InitAli(...)
- func InitBbn(key, appid string, goodsId int, notifyUrl string)
- func ResponseWxPayNotify(isSuccess bool, msg string) (rsp string)
- type AliPayNotify
- type BbnPayNotifyClient
- type WxPayClient
- type WxPayNotify
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAliPayPayInfo ¶
支付宝调起支付准备
func CreateBbnPayInfo ¶
func CreateBbnPayInfo(GoodsName, PcorderId, PcuserId string, money string) (payInfo string, err error)
bbn调起支付准备
func InitAli ¶
func InitAli(alipayKey, alipayPartner, alipaySellerEmail, privateKey, publicKey, notifyUrl string)
func ResponseWxPayNotify ¶
Types ¶
type AliPayNotify ¶
func CheckAliPayNotify ¶
func CheckAliPayNotify(request []byte) (data AliPayNotify, err error)
type BbnPayNotifyClient ¶
func CheckBbnPayNotify ¶
func CheckBbnPayNotify(data, sign string) (response BbnPayNotifyClient, err error)
type WxPayClient ¶
type WxPayClient struct {
// contains filtered or unexported fields
}
func NewWxPayClient ¶
func NewWxPayClient(appId string, mchId string, mchKey string) (*WxPayClient, error)
func (*WxPayClient) CheckWxPayNotify ¶
func (p *WxPayClient) CheckWxPayNotify(request []byte) (data WxPayNotify, err error)
检查微信回调
func (*WxPayClient) CreateWxPayPayInfoJSAPI ¶
func (p *WxPayClient) CreateWxPayPayInfoJSAPI(tradeNo, subject, totalFee, clientIp, userOpenId string, wxNotifyUrl string) (i core.WXPayReqForJS, err error)
微信调起支付准备
type WxPayNotify ¶
Click to show internal directories.
Click to hide internal directories.