-
-
Notifications
You must be signed in to change notification settings - Fork 489
/
Copy pathWeChatPayClientOptions.cs
49 lines (40 loc) · 1.05 KB
/
WeChatPayClientOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// ReSharper disable InconsistentNaming
namespace Essensoft.Paylinks.WeChatPay.Client;
/// <summary>
/// WeChatPay 客户端选项
/// </summary>
public class WeChatPayClientOptions
{
/// <summary>
/// 网关地址: https://api.mch.weixin.qq.com
/// </summary>
public string ServerUrl { get; set; }
/// <summary>
/// 应用Id
/// </summary>
public string AppId { get; set; }
/// <summary>
/// 商户号
/// </summary>
public string MchId { get; set; }
/// <summary>
/// 商户证书序列号
/// </summary>
public string MchSerialNo { get; set; }
/// <summary>
/// 商户证书私钥(PKCS#1)
/// </summary>
public string MchPrivateKey { get; set; }
/// <summary>
/// 微信支付公钥
/// </summary>
public string? WeChatPayPublicKey { get; set; }
/// <summary>
/// 微信支付公钥Id
/// </summary>
public string? WeChatPayPublicKeyId { get; set; }
/// <summary>
/// 商户APIv3密钥
/// </summary>
public string APIv3Key { get; set; }
}