using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WebService.SDK.KwyPay { public class KwyPayConfig { /// /// 客无忧支付平台API主地址 /// private string KwyPayURL { get; } /// /// 支付平台连接超时时间 /// 单位:秒 /// public int PlatformTimeout { get; } /// /// 客无忧支付平台APPID/OPENID /// public string PlatformAPPID { get; } /// /// 客无忧支付平台签名Key /// public string PlatformKey { get; } /// /// 客无忧支付平台机构号 /// public string Organization { get; } /// /// 统一条码付API地址 /// public string MicroPayURL => KwyPayURL + "/Payapi/Index/microPay"; /// /// H5、APP、公众号跳转支付API地址 /// public string WebPayURL => KwyPayURL + "/Payapi/Index/Webpay"; /// /// 支付查询API地址 /// public string OrderQueryURL => KwyPayURL + "/Payapi/Index/orderQuery"; /// /// 退款API地址 /// public string RefundPrice => KwyPayURL + "/Payapi/Index/refundPrice"; /// ///客无忧支付平台API参数初始化 /// /// 客无忧支付平台APPID /// 客无忧支付平台签名Key /// 客无忧支付平台机构号 /// 客无忧支付平台API主地址 /// 平台API连接超时时间(秒) public KwyPayConfig(string platformAPPID, string platformKey, string organization, string kwyPayURL = "https://apisvbak2.ke51.cn", int platformTimeout = 5) { PlatformAPPID = platformAPPID; PlatformKey = platformKey; Organization = organization; KwyPayURL = kwyPayURL; PlatformTimeout = platformTimeout; } } }