using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WebService.SDK.IRichPay { public class IRichPayConfig { /// /// 联动优势支付平台API主地址 /// private string IRichPayURL { get; } /// /// 支付平台连接超时时间 /// 单位:秒 /// public int PlatformTimeout { get; } /// /// 联动优势支付平台UserCode /// public string PlatformAPPID { get; } /// /// 联动优势支付平台签名Key /// public string PlatformKey { get; } /// /// 联动优势支付平台机构号 /// public string Organization { get; } /// /// 被扫支付接口地址 /// public string BeScanURL => IRichPayURL + "?action=BeScan"; /// /// 交易查询接口地址 /// public string QueryURL => IRichPayURL + "?action=Query"; /// /// 交易撤销接口地址 /// public string PayRefundURL => IRichPayURL + "?action=PayRefund"; /// /// 交易撤销查询接口地址 /// public string PayQueryRefundURL => IRichPayURL + "?action=PayQueryRefund"; /// /// 联动优势支付平台API参数初始化 /// /// 联动优势支付平台UserCode /// 联动优势支付平台签名Key /// 联动优势支付平台机构号 /// 联动优势支付平台API主地址 /// 平台API连接超时时间(秒) public IRichPayConfig(string platformAPPID, string platformKey, string organization, string iRichPayURL = "http://h5.irichpay.com/Api/NormPay.ashx", int platformTimeout = 5) { PlatformAPPID = platformAPPID; PlatformKey = platformKey; Organization = organization; IRichPayURL = iRichPayURL; PlatformTimeout = platformTimeout; } } }