using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WebService.SDK.GZNXPay
{
public class GZNXPayConfig
{
///
/// 贵州农信支付平台API主地址
///
private string GZNXPayURL { get; }
///
/// 支付平台连接超时时间
/// 单位:秒
///
public int PlatformTimeout { get; }
///
/// 贵州农信支付平台APPID
///
public string PlatformAPPID { get; }
///
/// 贵州农信支付平台签名Key
///
public string PlatformKey { get; }
///
/// 贵州农信支付平台签名类型
///
public string PlatformSignType { get; } = "rsa";
///
/// 贵州农信支付平台主商户号
///
public string Organization { get; }
///
/// 贵州农信支付平台接口版本
///
public string APIVersion { get; } = "3.0.1";
///
/// 被扫支付接口地址
///
public string ScanURL => GZNXPayURL + "/agw/mpopenapi";
///
/// 交易查询接口地址
///
public string QueryURL => GZNXPayURL + "/agw/mpopenapi";
///
/// 交易撤销接口地址
///
public string PayRefundURL => GZNXPayURL + "/agw/mpopenapi";
///
/// 交易撤销查询接口地址
///
public string PayQueryRefundURL => GZNXPayURL + "/agw/mpopenapi";
///
/// 贵州农信支付平台API参数初始化
///
/// 贵州农信支付平台APPID
/// 贵州农信支付平台签名Key
/// 贵州农信支付平台分行号
/// 贵州农信支付平台API主地址
/// 平台API连接超时时间(秒)
public GZNXPayConfig(string platformAPPID, string platformKey, string organization,
string gznxPayURL = "https://hyyy.gznxqny.com", int platformTimeout = 5)
{
PlatformAPPID = platformAPPID;
PlatformKey = platformKey;
Organization = organization;
GZNXPayURL = gznxPayURL;
PlatformTimeout = platformTimeout;
}
}
}