FinanceMargePay

package
v5.1.37 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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. 反馈支付请求的客户端所需资源

func Payment

func Payment(args *ArgsPayment) (err error)

Payment 完成二维码的支付

Types

type ArgsCreatePay

type ArgsCreatePay struct {
	//支付ID
	// 二维码将识别对应的支付ID,并根据端的区别,自动修正支付请求的端数据包,方便调用支付请求处理
	PayID int64 `db:"pay_id" json:"payID" check:"id"`
}

ArgsCreatePay 创建聚合支付请求参数

type ArgsPayClient

type ArgsPayClient struct {
}

ArgsPayClient 提供端请求,修正支付请求并反馈数据包参数

type ArgsPayment

type ArgsPayment struct {
}

ArgsPayment 完成二维码的支付操作

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 聚合支付二维码

Jump to

Keyboard shortcuts

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