Browse Source

更新 AlipayOptions 注释

Roc 5 years ago
parent
commit
9fcad664bb

+ 1 - 1
samples/WebApplicationSample/appsettings.Development.json

@@ -26,7 +26,7 @@
     //应用ID
     "AppId": "",
 
-    //RSA 支付宝公钥
+    //RSA 支付宝公钥,加签方式为公钥证书时,为空
     "AlipayPublicKey": "",
 
     //RSA 应用私钥,加签方式为公钥证书时,为证书私钥

+ 42 - 1
samples/WebApplicationSample/appsettings.json

@@ -6,5 +6,46 @@
       "Microsoft.Hosting.Lifetime": "Information"
     }
   },
-  "AllowedHosts": "*"
+  "AllowedHosts": "*",
+  "WeChatPay": {
+    //应用号(公众平台AppId/开放平台AppId/小程序AppId/企业微信CorpId)
+    "AppId": "",
+
+    //商户号
+    "MchId": "",
+
+    //API秘钥,不是APIv3密钥
+    "Key": "",
+
+    //API证书 .p12
+    "Certificate": "",
+
+    //RSA公钥 (目前仅"企业付款到银行卡API"使用,调用"获取RSA加密公钥API"即可获取)
+    "RsaPublicKey": ""
+  },
+  "Alipay": {
+    //应用ID
+    "AppId": "",
+
+    //RSA 支付宝公钥,加签方式为公钥证书时,为空
+    "AlipayPublicKey": "",
+
+    //RSA 应用私钥,加签方式为公钥证书时,为证书私钥
+    "AppPrivateKey": "",
+
+    //网关地址,默认正式环境
+    "ServerUrl": "https://openapi.alipay.com/gateway.do",
+
+    //签名类型
+    "SignType": "RSA2",
+
+    //商户证书,加签方式为公钥证书时,必填
+    "AppCert": "",
+
+    //公钥证书,加签方式为公钥证书时,必填
+    "AlipayPublicCert": "",
+
+    //根证书,加签方式为公钥证书时,必填
+    "RootCert": ""
+  }
 }

+ 3 - 1
src/Essensoft.AspNetCore.Payment.Alipay/AlipayOptions.cs

@@ -25,11 +25,13 @@ namespace Essensoft.AspNetCore.Payment.Alipay
 
         /// <summary>
         /// RSA 支付宝公钥
+        /// 加签方式为公钥证书时,为空
         /// </summary>
         public string AlipayPublicKey { get; set; }
 
         /// <summary>
         /// RSA 应用私钥
+        /// 加签方式为公钥证书时,为证书对应的私钥
         /// </summary>
         public string AppPrivateKey { get; set; }
 
@@ -92,7 +94,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay
         }
 
         /// <summary>
-        /// 公钥证书
+        /// 支付宝公钥证书
         /// </summary>
         public string AlipayPublicCert
         {