using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WebService.SDK.CCBPay { public class CCBPayConfig { /// /// 建设银行支付平台API主地址 /// private string CCBPayURL { get; } /// /// 建设银行退款交易接口地址 /// private string CCBRefundURL { get; } /// /// 支付平台连接超时时间 /// 单位:秒 /// public int PlatformTimeout { get; } /// /// 建设银行支付平台APPID /// public string PlatformAPPID { get; } /// /// 建设银行支付平台签名Key /// public string PlatformKey { get; } /// /// 建设银行支付平台分行号 /// public string Organization { get; } /// /// 被扫支付接口地址 /// public string ScanURL => CCBPayURL + "/CCBIS/B2CMainPlat_00_ENPAY"; /// /// 交易查询接口地址 /// public string QueryURL => CCBPayURL + "/CCBIS/B2CMainPlat_00_ENPAY"; /// /// 交易撤销接口地址 /// public string PayRefundURL => CCBRefundURL+ "/CCBWeb/refund.jsp"; /// /// 交易撤销查询接口地址 /// public string PayQueryRefundURL => CCBRefundURL+ "/CCBWeb/refund.jsp"; /// /// 建设银行支付平台API参数初始化 /// /// 建设银行支付平台APPID /// 建设银行支付平台签名Key /// 建设银行支付平台分行号 /// 建设银行支付平台API主地址 /// 建设银行退款API地址 /// 平台API连接超时时间(秒) public CCBPayConfig(string platformAPPID, string platformKey, string organization, string ccbPayURL = "https://ibsbjstar.ccb.com.cn", string ccbRefundURL = "http://183.129.232.107:13080", int platformTimeout = 5) { PlatformAPPID = platformAPPID; PlatformKey = platformKey; Organization = organization; CCBPayURL = ccbPayURL; CCBRefundURL = ccbRefundURL; PlatformTimeout = platformTimeout; } } }