No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 

63 líneas
1.8 KiB

using System.Web;
using System.Text;
using System.IO;
using System.Net;
using System;
using System.Collections.Generic;
namespace Com.Alipay
{
/// <summary>
/// 类名:Config
/// 功能:基础配置类
/// 详细:设置帐户有关信息及返回路径
/// 版本:3.3
/// 日期:2012-07-05
/// 说明:
/// 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
/// 该代码仅供学习和研究支付宝接口使用,只是提供一个参考。
///
/// 如何获取安全校验码和合作身份者ID
/// 1.用您的签约支付宝账号登录支付宝网站(www.alipay.com)
/// 2.点击“商家服务”(https://b.alipay.com/order/myOrder.htm)
/// 3.点击“查询合作者身份(PID)”、“查询安全校验码(Key)”
/// </summary>
public class Config
{
#region 字段
private static string input_charset = "";
private static string sign_type = "";
#endregion
static Config()
{
//字符编码格式 目前支持 gbk 或 utf-8
input_charset = "utf-8";
//签名方式,选择项:RSA、DSA、MD5
sign_type = "MD5";
}
#region 属性
/// <summary>
/// 获取字符编码格式
/// </summary>
public static string Input_charset
{
get { return input_charset; }
}
/// <summary>
/// 获取签名方式
/// </summary>
public static string Sign_type
{
get { return sign_type; }
}
#endregion
}
}