using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WebService.SDK.ALLinPay
{
public class ALLinPayConfig
{
///
/// 通联支付平台API主地址
///
private string ALLinPayURL { get; }
///
/// 支付平台连接超时时间
/// 单位:秒
///
public int PlatformTimeout { get; }
///
/// 通联支付平台APPID
///
public string PlatformAPPID { get; }
///
/// 通联支付平台签名Key
///
public string PlatformKey { get; }
///
/// 通联支付平台机构号
///
public string Organization { get; }
///
/// 统一条码付API地址
///
public string ScanPayURL => ALLinPayURL + "/apiweb/unitorder/scanqrpay";
///
/// 统一支付API地址
/// 二维码支付,JS支付,小程序支付
///
public string PayURL => ALLinPayURL + "/apiweb/unitorder/pay";
///
/// H5、APP支付API地址
///
public string H5PayURL => ALLinPayURL + "/apiweb/unitorder/h5pay";
///
/// 支付查询API地址
///
public string QueryURL => ALLinPayURL + "/apiweb/unitorder/query";
///
/// 退款API地址
///
public string RefundURL => ALLinPayURL + "/apiweb/unitorder/refund";
///
/// 通联支付平台API参数初始化
///
/// 通联支付平台APPID
/// 通联支付平台签名Key
/// 通联支付平台机构号
/// 通联支付平台API主地址
/// 平台API连接超时时间(秒)
public ALLinPayConfig(string platformAPPID, string platformKey, string organization,
string allinPayURL = "https://vsp.allinpay.com", int platformTimeout = 5)
{
PlatformAPPID = platformAPPID;
PlatformKey = platformKey;
Organization = organization;
ALLinPayURL = allinPayURL;
PlatformTimeout = platformTimeout;
}
}
}