15 Star 49 Fork 8

zhangchenghui / wxpay

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
client_test.go 459 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangchenghui 提交于 2018-10-09 10:57 . 更新测试单元
package wxpay
import "testing"
func TestClient_UnifiedOrder(t *testing.T) {
client := NewClient(NewAccount("xxxxx", "xxx", "xxxxx", false))
params := make(Params)
params.SetString("body", "test").
SetString("out_trade_no", "58867657575757").
SetInt64("total_fee", 1).
SetString("spbill_create_ip", "127.0.0.1").
SetString("notify_url", "http://notify.objcoding.com/notify").
SetString("trade_type", "APP")
t.Log(client.UnifiedOrder(params))
}
Go
1
https://gitee.com/objcoding/wxpay.git
git@gitee.com:objcoding/wxpay.git
objcoding
wxpay
wxpay
master

搜索帮助