Documentation
¶
Index ¶
- func CreatePay(args *ArgsCreatePay) (CoreSQLConfig.FieldsConfigsType, error)
- func CreateRefund(args *ArgsCreateRefund) (CoreSQLConfig.FieldsConfigsType, error)
- func PaymentReport(args *ArgsPaymentReport, request *http.Request) (*payments.Transaction, error)
- func RefundCheck(args *ArgsRefundCheck) (*refunddomestic.Refund, error)
- type ArgsCreatePay
- type ArgsCreateRefund
- type ArgsPaymentReport
- type ArgsRefundCheck
- type ArgsRefundReport
- type DataRefundReport
- type DataRefundReportAmount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePay ¶
func CreatePay(args *ArgsCreatePay) (CoreSQLConfig.FieldsConfigsType, error)
CreatePay 发起支付请求 反馈数据的string存在多样性,native模式下反馈二维码地址 其他反馈所需要的token数据包,用于前端发起支付请求
func CreateRefund ¶
func CreateRefund(args *ArgsCreateRefund) (CoreSQLConfig.FieldsConfigsType, error)
CreateRefund 创建退款请求
func PaymentReport ¶
func PaymentReport(args *ArgsPaymentReport, request *http.Request) (*payments.Transaction, error)
PaymentReport 支付回调处理
func RefundCheck ¶
func RefundCheck(args *ArgsRefundCheck) (*refunddomestic.Refund, error)
RefundCheck 检查退款是否完成
Types ¶
type ArgsCreatePay ¶
type ArgsCreatePay struct {
//组织ID
OrgID int64 `json:"orgID"`
//发起渠道
// 和微信官方文档标记一致:
// jsapi / wxx / native / h5 / app
SystemFrom string `json:"systemFrom"`
//订单描述
Des string `json:"des"`
//支付Key
PayKey string `json:"payKey"`
//自定义说明
// 同时将反馈给反馈接口
Attach string `json:"attach"`
//订单金额
Price int64 `json:"price"`
//支付用户OpenID
// 只有微信小程序需要该参数,其他可留空
OpenID string `json:"openID"`
//操作IP
IP string `json:"ip"`
}
ArgsCreatePay 发起支付请求参数
type ArgsCreateRefund ¶
type ArgsCreateRefund struct {
//组织ID
OrgID int64 `json:"orgID"`
//订单描述
Des string `json:"des"`
//支付Key
PayKey string `json:"payKey"`
//退款单号ID
RefundKey string `json:"refundKey"`
//微信支付ID
TransactionId string `json:"transactionId"`
//要退款的金额
PriceRefund int64 `json:"priceRefund"`
//订单总的金额
PriceTotal int64 `json:"priceTotal"`
}
ArgsCreateRefund 创建退款请求参数
type ArgsPaymentReport ¶
type ArgsPaymentReport struct {
//组织ID
OrgID int64 `json:"orgID"`
}
ArgsPaymentReport 支付回调处理参数
type ArgsRefundCheck ¶
type ArgsRefundCheck struct {
//组织ID
OrgID int64 `json:"orgID"`
//支付key
PayKey string `json:"payKey,omitempty"`
}
ArgsRefundCheck 检查退款是否完成参数
type ArgsRefundReport ¶
type ArgsRefundReport struct {
//组织ID
OrgID int64 `json:"orgID"`
}
ArgsRefundReport 退款回调处理函数
type DataRefundReport ¶
type DataRefundReport struct {
Mchid *string `json:"mchid,omitempty"`
TransactionId *string `json:"transaction_id,omitempty"`
OutTradeNo *string `json:"out_trade_no,omitempty"`
RefundID *string `json:"refund_id,omitempty"`
OutRefundNo *string `json:"out_refund_no,omitempty"`
RefundStatus *string `json:"refund_status,omitempty"`
SuccessTime *string `json:"success_time,omitempty"`
UserReceivedAccount *string `json:"user_received_account,omitempty"`
Amount *DataRefundReportAmount `json:"amount,omitempty"`
}
func RefundReport ¶
func RefundReport(args *ArgsRefundReport, request *http.Request) (*DataRefundReport, error)
RefundReport 退款回调处理
Source Files
¶
Click to show internal directories.
Click to hide internal directories.