3 Star 9 Fork 4

haming123 / wxpay4go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
wx_mid_native.go 508 Bytes
一键复制 编辑 原始数据 按行查看 历史
fyzx 提交于 2023-01-14 17:05 . 重构了NewWxPayMid
package wxpay
import (
"crypto/rsa"
"crypto/x509"
)
type MidNative struct {
WxPayMid
}
func NewMidNative(mchid, appid, mch_api_key string, pem_cert *x509.Certificate, pem_key *rsa.PrivateKey) *MidNative {
ent := &MidNative{}
ent.Appid = appid
ent.Mchid = mchid
ent.MchAPIKey = mch_api_key
ent.MchPrivateKey = pem_key
ent.MchCertificate = pem_cert
return ent
}
// 支付统一下单
func (ent *MidNative) CreateOrder(data NativeOrderData) (string, error) {
return ent.CreateOrderNative(data)
}
Go
1
https://gitee.com/haming123/wxpay4go.git
git@gitee.com:haming123/wxpay4go.git
haming123
wxpay4go
wxpay4go
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891