using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WebService.SDK.UnionPay
{
public class UnionPayConfig
{
///
/// 银联支付平台API主地址
///
private string UnionPayURL { get; }
///
/// 接口版本
///
public string Version { get; } = "2.0";
///
/// 支付平台连接超时时间
/// 单位:秒
///
public int PlatformTimeout { get; }
///
/// 银联支付平台APPID
///
public string PlatformAPPID { get; }
///
/// 银联支付平台签名Key
///
public string PlatformKey { get; }
///
/// 银联支付平台机构号
///
public string Organization { get; }
///
/// API地址
///
public string UnionPayAPIURL => UnionPayURL + "/pay/gateway";
///
/// 银联支付平台API参数初始化
///
/// 银联支付平台APPID
/// 银联支付平台签名Key
/// 银联支付平台机构号
/// 银联支付平台API主地址
/// 平台API连接超时时间(秒)
public UnionPayConfig(string platformAPPID, string platformKey, string organization,
string unionPayURL = "https://qra.95516.com", int platformTimeout = 5)
{
PlatformAPPID = platformAPPID;
PlatformKey = platformKey;
Organization = organization;
UnionPayURL = unionPayURL;
PlatformTimeout = platformTimeout;
}
}
}