Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePay ¶
func CreatePay(args *ArgsCreatePay) (data string, err error)
CreatePay 创建聚合支付请求 1. 创建正常支付请求,不要做客户端确认 2. 通过支付请求,创建本聚合请求,出具二维码让客户完成后续支付即可
func PayClient ¶
func PayClient(args *ArgsPayClient) (err error)
PayClient 提供端请求,修正支付请求并反馈数据包 * 1. 提供端数据包 2. 根据数据包,修正支付请求 3. 反馈支付请求的客户端所需资源
Types ¶
type ArgsCreatePay ¶
type ArgsCreatePay struct {
//支付ID
// 二维码将识别对应的支付ID,并根据端的区别,自动修正支付请求的端数据包,方便调用支付请求处理
PayID int64 `db:"pay_id" json:"payID" check:"id"`
}
ArgsCreatePay 创建聚合支付请求参数
type FieldsQrcode ¶
type FieldsQrcode struct {
//ID
ID int64 `db:"id" json:"id" check:"id"`
//创建时间
CreateAt time.Time `db:"create_at" json:"createAt"`
//删除时间
DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
//交易过期时间
// 如果提交空的时间,将直接按照过期处理
ExpireAt time.Time `db:"expire_at" json:"expireAt" check:"isoTime"`
//支付Key
PayKey string `db:"pay_key" json:"payKey"`
//支付ID
// 二维码将识别对应的支付ID,并根据端的区别,自动修正支付请求的端数据包,方便调用支付请求处理
PayID int64 `db:"pay_id" json:"payID" check:"id"`
}
FieldsQrcode 聚合支付二维码
Click to show internal directories.
Click to hide internal directories.