浏览代码

add Reverse: for v1.0.1

tags/v1.3.8
jiaoboxiang 2 年前
父节点
当前提交
c1adcc7025
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. +8
    -8
      pay/pay_by_join.go

+ 8
- 8
pay/pay_by_join.go 查看文件

@@ -12,23 +12,23 @@ import (

func UniPayByJoin(payParams *md.JoinPayReq, paySecretKey string,isPrd bool) (*md.JoinPayResponse, error) {
payParams.P0Version = "2.1"
payParams.P1MerchantNo = md.PayTestAccount
//payParams.P1MerchantNo = md.PayTestAccount
payParams.P4Cur = "1"
payParams.P2OrderNo = "95271"
payParams.P3Amount = "0.1"
payParams.P5ProductName = "测试商品"
payParams.P9NotifyUrl = "AB|https://www.baidu.com"
//payParams.P2OrderNo = "95271"
//payParams.P3Amount = "0.1"
//payParams.P5ProductName = "测试商品"
//payParams.P9NotifyUrl = "AB|https://www.baidu.com"
//--交易类型
payParams.Q1FrpCode = md.Q1FrpCodeWEIXINPAYAPP
//payParams.Q1FrpCode = md.Q1FrpCodeWEIXINPAYAPP
//payParams.Q1FrpCode = md.Q1FrpCodeALIPAY
//原始微信AppId
//payParams.Q7AppId = "gh_5a236de9850a"
//微信AppId
payParams.Q7AppId = "wx5bb10bb79cb5da1c"
//payParams.Q7AppId = "wx5bb10bb79cb5da1c"
//商家报备编号(分微信和支付宝的);支付宝的:
//payParams.QATradeMerchantNo = md.PayTestAliAccount
//商家报备编号(分微信和支付宝的);微信的:
payParams.QATradeMerchantNo = md.PayTestWeChatAccount
//payParams.QATradeMerchantNo = md.PayTestWeChatAccount
postData := url.Values{}
creatHmac(payParams,paySecretKey, &postData)
zhios_pay_utils.FilePutContents("UniPayByJoin", zhios_pay_utils.SerializeStr(map[string]interface{}{


正在加载...
取消
保存