Ver código fonte

add wx pay fohow oubiao

abiao 5 anos atrás
pai
commit
1c1aa7f879

+ 13 - 1
go/gopath/src/fohow.com/conf/app.conf

@@ -118,6 +118,10 @@ TakeWxMchKeyFile = "/opt/wxpay/take_wx/apiclient_key.pem"
 LehuMchCertFile= "/opt/wxpay/wx/apiclient_cert.pem"
 LehuMchKeyFile = "/opt/wxpay/wx/apiclient_key.pem"
 
+#凤凰欧标商户号证书
+OuBiaoMchCertFile= "/opt/wxpay/oubiao/apiclient_cert.pem"
+OuBiaoMchKeyFile = "/opt/wxpay/oubiao/apiclient_key.pem"
+
 #######################################################################
 [prod]
 AllowOrigins = *
@@ -225,4 +229,12 @@ WxMchKeyFile = "/opt/wxpay/fohow_wx/apiclient_key.pem"
 
 #提现商户号证书
 TakeWxMchCertFile= "/opt/wxpay/take_wx/apiclient_cert.pem"
-TakeWxMchKeyFile = "/opt/wxpay/take_wx/apiclient_key.pem"
+TakeWxMchKeyFile = "/opt/wxpay/take_wx/apiclient_key.pem"
+
+#乐福优选商户号证书
+LehuMchCertFile= "/opt/wxpay/wx/apiclient_cert.pem"
+LehuMchKeyFile = "/opt/wxpay/wx/apiclient_key.pem"
+
+#凤凰欧标商户号证书
+OuBiaoMchCertFile= "/opt/wxpay/oubiao/apiclient_cert.pem"
+OuBiaoMchKeyFile = "/opt/wxpay/oubiao/apiclient_key.pem"

+ 9 - 0
go/gopath/src/fohow.com/libs/wx_mp/pay.go

@@ -31,6 +31,10 @@ const (
 	lehuMchId  = "1581904571"
 	lehuApiKey = "r1sbdza2mgs2zo3x2u6w8plgh91z0gqq"
 
+	//凤凰欧标
+	oubiaoMchId  = "1601075858"
+	oubiaoApiKey = "7592dac80b33214829b3484740162ac4"
+
 	//微信公众号使用小程序的商户号和api加密
 	gzhMchId  = ""
 	gzhApiKey = ""
@@ -120,6 +124,11 @@ func GetMechantInfo(mechantCode string) (ret MechantPayInfo) {
 		ret.ApiKey = lehuApiKey
 		ret.MchKeyFile = beego.AppConfig.String("LehuMchKeyFile")
 		ret.MchCertFile = beego.AppConfig.String("LehuMchCertFile")
+	case "oubiao":
+		ret.MchId = oubiaoMchId
+		ret.ApiKey = oubiaoApiKey
+		ret.MchKeyFile = beego.AppConfig.String("OuBiaoMchKeyFile")
+		ret.MchCertFile = beego.AppConfig.String("OuBiaoMchCertFile")
 	default:
 		ret.MchId = mchId
 		ret.ApiKey = apiKey