provider

package
v0.0.0-...-700b159 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Wechat = &wechat{}

Functions

This section is empty.

Types

type UnifyOrderReq

type UnifyOrderReq struct {
	Appid          string `xml:"appid"`
	Body           string `xml:"body"`
	MchID          string `xml:"mch_id"`
	NonceStr       string `xml:"nonce_str"`
	NotifyURL      string `xml:"notify_url"`
	TradeType      string `xml:"trade_type"`
	SpbillCreateIP string `xml:"spbill_create_ip"`
	TotalFee       int    `xml:"total_fee"`
	OutTradeNo     string `xml:"out_trade_no"`
	Sign           string `xml:"sign"`
}

请求https://api.mch.weixin.qq.com/pay/unifiedorder需要填入的参数 refs: https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_1

type UnifyOrderResp

type UnifyOrderResp struct {
	Return_code string `xml:"return_code"`
	Return_msg  string `xml:"return_msg"`
	Appid       string `xml:"appid"`
	MchID       string `xml:"mch_id"`
	NonceStr    string `xml:"nonce_str"`
	Sign        string `xml:"sign"`
	ResultCode  string `xml:"result_code"`
	PrepayID    string `xml:"prepay_id"`
	TradeType   string `xml:"trade_type"`
	ErrCode     string `xml:"err_code"`
}

Jump to

Keyboard shortcuts

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