payment

package
v0.0.0-...-3b54ddd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAliPayPayInfo

func CreateAliPayPayInfo(tradeNo, subject, totalFee, body string) string

支付宝调起支付准备

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 InitBbn

func InitBbn(key, appid string, goodsId int, notifyUrl string)

func ResponseWxPayNotify

func ResponseWxPayNotify(isSuccess bool, msg string) (rsp string)

Types

type AliPayNotify

type AliPayNotify struct {
	TradeNO, OutTradeNO string
	Amount              float64
}

func CheckAliPayNotify

func CheckAliPayNotify(request []byte) (data AliPayNotify, err error)

type BbnPayNotifyClient

type BbnPayNotifyClient struct {
	TradeNO, OutTradeNO string
	Amount              float64
}

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

type WxPayNotify struct {
	TradeNO, OutTradeNO string
	Amount              string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL