-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSDKConfig.cs
141 lines (123 loc) · 6.2 KB
/
SDKConfig.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
using System.Web.Configuration;
using System.Configuration;
namespace UnionPay
{
public class SDKConfig
{
private static Configuration config = WebConfigurationManager.OpenWebConfiguration("~");
private static string signCertPath = config.AppSettings.Settings["sdk.signCert.path"].Value; //功能:读取配置文件获取签名证书路径
private static string signCertPwd = config.AppSettings.Settings["sdk.signCert.pwd"].Value;//功能:读取配置文件获取签名证书密码
private static string validateCertDir = config.AppSettings.Settings["sdk.validateCert.dir"].Value;//功能:读取配置文件获取验签目录
public static string encryptCert = config.AppSettings.Settings["sdk.encryptCert.path"].Value; //功能:加密公钥证书路径
private static string cardRequestUrl = config.AppSettings.Settings["sdk.cardRequestUrl"].Value; //功能:有卡交易路径;
private static string appRequestUrl = config.AppSettings.Settings["sdk.appRequestUrl"].Value; //功能:appj交易路径;
private static string singleQueryUrl = config.AppSettings.Settings["sdk.singleQueryUrl"].Value; //功能:读取配置文件获取交易查询地址
private static string fileTransUrl = config.AppSettings.Settings["sdk.fileTransUrl"].Value; //功能:读取配置文件获取文件传输类交易地址
private static string frontTransUrl = config.AppSettings.Settings["sdk.frontTransUrl"].Value; //功能:读取配置文件获取前台交易地址
private static string backTransUrl = config.AppSettings.Settings["sdk.backTransUrl"].Value;//功能:读取配置文件获取后台交易地址
private static string batTransUrl = config.AppSettings.Settings["sdk.batTransUrl"].Value;//功能:读取配批量交易地址
private static string frontUrl = config.AppSettings.Settings["union_frontUrl"].Value;//功能:读取配置文件获取前台通知地址
private static string backUrl = config.AppSettings.Settings["union_backUrl"].Value;//功能:读取配置文件获取前台通知地址
private static string jfCardRequestUrl = config.AppSettings.Settings["sdk.jf.cardRequestUrl"].Value; //功能:缴费产品有卡交易路径;
private static string jfAppRequestUrl = config.AppSettings.Settings["sdk.jf.appRequestUrl"].Value; //功能:缴费产品app交易路径;
private static string jfSingleQueryUrl = config.AppSettings.Settings["sdk.jf.singleQueryUrl"].Value; //功能:读取配置文件获取缴费产品交易查询地址
private static string jfFrontTransUrl = config.AppSettings.Settings["sdk.jf.frontTransUrl"].Value; //功能:读取配置文件获取缴费产品前台交易地址
private static string jfBackTransUrl = config.AppSettings.Settings["sdk.jf.backTransUrl"].Value;//功能:读取配置文件获取缴费产品后台交易地址
private static string ifValidateRemoteCert = config.AppSettings.Settings["ifValidateRemoteCert"].Value;//功能:是否验证后台https证书
public static string CardRequestUrl
{
get { return SDKConfig.cardRequestUrl; }
set { SDKConfig.cardRequestUrl = value; }
}
public static string AppRequestUrl
{
get { return SDKConfig.appRequestUrl; }
set { SDKConfig.appRequestUrl = value; }
}
public static string FrontTransUrl
{
get { return SDKConfig.frontTransUrl; }
set { SDKConfig.frontTransUrl = value; }
}
public static string EncryptCert
{
get { return SDKConfig.encryptCert; }
set { SDKConfig.encryptCert = value; }
}
public static string BackTransUrl
{
get { return SDKConfig.backTransUrl; }
set { SDKConfig.backTransUrl = value; }
}
public static string SingleQueryUrl
{
get { return SDKConfig.singleQueryUrl; }
set { SDKConfig.singleQueryUrl = value; }
}
public static string FileTransUrl
{
get { return SDKConfig.fileTransUrl; }
set { SDKConfig.fileTransUrl = value; }
}
public static string SignCertPath
{
get { return SDKConfig.signCertPath; }
set { SDKConfig.signCertPath = value; }
}
public static string SignCertPwd
{
get { return SDKConfig.signCertPwd; }
set { SDKConfig.signCertPwd = value; }
}
public static string ValidateCertDir
{
get { return SDKConfig.validateCertDir; }
set { SDKConfig.validateCertDir = value; }
}
public static string BatTransUrl
{
get { return SDKConfig.batTransUrl; }
set { SDKConfig.batTransUrl = value; }
}
public static string BackUrl
{
get { return SDKConfig.backUrl; }
set { SDKConfig.backUrl = value; }
}
public static string FrontUrl
{
get { return SDKConfig.frontUrl; }
set { SDKConfig.frontUrl = value; }
}
public static string JfCardRequestUrl
{
get { return SDKConfig.cardRequestUrl; }
set { SDKConfig.cardRequestUrl = value; }
}
public static string JfAppRequestUrl
{
get { return SDKConfig.jfAppRequestUrl; }
set { SDKConfig.jfAppRequestUrl = value; }
}
public static string JfFrontTransUrl
{
get { return SDKConfig.jfFrontTransUrl; }
set { SDKConfig.jfFrontTransUrl = value; }
}
public static string JfBackTransUrl
{
get { return SDKConfig.jfBackTransUrl; }
set { SDKConfig.jfBackTransUrl = value; }
}
public static string JfSingleQueryUrl
{
get { return SDKConfig.jfSingleQueryUrl; }
set { SDKConfig.jfSingleQueryUrl = value; }
}
public static string IfValidateRemoteCert
{
get { return SDKConfig.ifValidateRemoteCert; }
set { SDKConfig.ifValidateRemoteCert = value; }
}
}
}