using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WebService.SDK.Uphicoo { public class UphicooConfig { /// /// 嗨客支付平台API主地址 /// public string UphicooURL { get; } /// /// 支付平台连接超时时间 /// 单位:秒 /// public int PlatformTimeout { get; } /// /// 嗨客支付平台APPID /// public string PlatformAPPID { get; } /// /// 嗨客平台签名类型 /// public string PlatformSignType { get; } /// /// 嗨客支付平台签名Key /// public string PlatformKey { get; } /// /// 嗨客支付平台机构号 /// public string Organization { get; } /// /// 付款码支付API地址 /// public string BarcodeUphicooURL => UphicooURL + "/v2/pay/barcode"; /// /// 订单查询API地址 /// public string QueryUphicooURL => UphicooURL + "/v2/order/query"; /// /// 订单退款API地址 /// public string RefundUphicooURL => UphicooURL + "/v2/order/refund"; /// /// 退款查询API地址 /// public string RefundqueryPriceURL => UphicooURL + "/v2/order/refundquery"; /// /// 嗨客平台API参数初始化 /// /// 嗨客支付平台APPID /// 嗨客支付平台签名Key /// 嗨客支付平台机构号 /// 嗨客支付平台API主地址 /// 嗨客支付平台连接超时时间 public UphicooConfig(string platformAPPID, string platformKey, string organization, string uphicooURL = "https://openapi.uphicoo.com", int platformTimeout = 5) { PlatformAPPID = platformAPPID; PlatformKey = platformKey; Organization = organization; UphicooURL = uphicooURL; PlatformTimeout = platformTimeout; } } }