70 lines
2.4 KiB
C#
70 lines
2.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace WebService.SDK.Uphicoo
|
|
{
|
|
public class UphicooConfig
|
|
{
|
|
/// <summary>
|
|
/// 嗨客支付平台API主地址
|
|
/// </summary>
|
|
public string UphicooURL { get; }
|
|
/// <summary>
|
|
/// 支付平台连接超时时间
|
|
/// 单位:秒
|
|
/// </summary>
|
|
public int PlatformTimeout { get; }
|
|
/// <summary>
|
|
/// 嗨客支付平台APPID
|
|
/// </summary>
|
|
public string PlatformAPPID { get; }
|
|
/// <summary>
|
|
/// 嗨客平台签名类型
|
|
/// </summary>
|
|
public string PlatformSignType { get; }
|
|
/// <summary>
|
|
/// 嗨客支付平台签名Key
|
|
/// </summary>
|
|
public string PlatformKey { get; }
|
|
/// <summary>
|
|
/// 嗨客支付平台机构号
|
|
/// </summary>
|
|
public string Organization { get; }
|
|
/// <summary>
|
|
/// 付款码支付API地址
|
|
/// </summary>
|
|
public string BarcodeUphicooURL => UphicooURL + "/v2/pay/barcode";
|
|
/// <summary>
|
|
/// 订单查询API地址
|
|
/// </summary>
|
|
public string QueryUphicooURL => UphicooURL + "/v2/order/query";
|
|
/// <summary>
|
|
/// 订单退款API地址
|
|
/// </summary>
|
|
public string RefundUphicooURL => UphicooURL + "/v2/order/refund";
|
|
/// <summary>
|
|
/// 退款查询API地址
|
|
/// </summary>
|
|
public string RefundqueryPriceURL => UphicooURL + "/v2/order/refundquery";
|
|
/// <summary>
|
|
/// 嗨客平台API参数初始化
|
|
/// </summary>
|
|
/// <param name="platformAPPID">嗨客支付平台APPID</param>
|
|
/// <param name="platformKey">嗨客支付平台签名Key</param>
|
|
/// <param name="organization">嗨客支付平台机构号</param>
|
|
/// <param name="uphicooURL">嗨客支付平台API主地址</param>
|
|
/// <param name="platformTimeout">嗨客支付平台连接超时时间</param>
|
|
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;
|
|
}
|
|
}
|
|
}
|