using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WebService.SDK.ICBCPay { public class ICBCPayConfig { /// /// 工行支付平台API主地址 /// private string ICBCPayURL { get; } /// /// 支付平台连接超时时间 /// 单位:秒 /// public int PlatformTimeout { get; } /// /// 工行支付平台APPID /// public string ICBCAPPID { get; } /// /// 工行用户加密私钥 /// public string UserPrivateKey { get; } /// /// 工行用户加密公钥 /// public string UserPublicKey { get; } /// /// 工行支付平台签名Key /// public string ICBCPublicKey { get; } /// /// 工行支付平台签名类型 /// public string PlatformSignType { get; } = "rsa"; /// /// 工行支付平台主商户号 /// public string Organization { get; } /// /// 工行支付平台接口版本 /// public string APIVersion { get; } = "1"; /// /// 被扫支付接口地址 /// public string ScanURL => ICBCPayURL + "/api/qrcode/V2/pay"; /// /// 交易查询接口地址 /// public string QueryURL => ICBCPayURL + "/api/qrcode/V2/query"; /// /// 交易退款接口地址 /// public string PayRefundURL => ICBCPayURL + "/api/qrcode/V2/reject"; /// /// 交易退款查询接口地址 /// public string PayQueryRefundURL => ICBCPayURL + "/api/qrcode/reject/query/V3"; /// /// 工行支付平台API参数初始化 /// /// 工行支付平台APPID /// 工行支付平台用户私钥 /// 工行支付平台用户公钥 /// 工行支付平台签名公钥 /// 工行支付平台分行号 /// 工行支付平台API主地址 /// 平台API连接超时时间(秒) public ICBCPayConfig(string icbcAPPID, string userPrivateKey,string userPublicKey, string icbcPublicKey, string organization, string icbcPayURL = "https://gw.open.icbc.com.cn", int platformTimeout = 5) { ICBCAPPID = icbcAPPID; UserPrivateKey = userPrivateKey; UserPublicKey = userPublicKey; ICBCPublicKey = icbcPublicKey; Organization = organization; ICBCPayURL = icbcPayURL; PlatformTimeout = platformTimeout; } } }