appsettings.json 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "Logging": {
  3. "LogLevel": {
  4. "Default": "Information",
  5. "Microsoft": "Warning",
  6. "Microsoft.Hosting.Lifetime": "Information"
  7. }
  8. },
  9. "AllowedHosts": "*",
  10. "WeChatPay": {
  11. //应用号(公众平台AppId/开放平台AppId/小程序AppId/企业微信CorpId)
  12. "AppId": "",
  13. //商户号
  14. "MchId": "",
  15. //API秘钥,不是APIv3密钥
  16. "Key": "",
  17. //API证书 .p12
  18. "Certificate": "",
  19. //RSA公钥 (目前仅"企业付款到银行卡API"使用,调用"获取RSA加密公钥API"即可获取)
  20. "RsaPublicKey": ""
  21. },
  22. "Alipay": {
  23. //应用ID
  24. "AppId": "",
  25. //RSA 支付宝公钥,加签方式为公钥证书时,为空
  26. "AlipayPublicKey": "",
  27. //RSA 应用私钥,加签方式为公钥证书时,为证书私钥
  28. "AppPrivateKey": "",
  29. //网关地址,默认正式环境
  30. "ServerUrl": "https://openapi.alipay.com/gateway.do",
  31. //签名类型
  32. "SignType": "RSA2",
  33. //商户证书,加签方式为公钥证书时,必填
  34. "AppCert": "",
  35. //公钥证书,加签方式为公钥证书时,必填
  36. "AlipayPublicCert": "",
  37. //根证书,加签方式为公钥证书时,必填
  38. "RootCert": ""
  39. }
  40. }