Com.Alipay/Service.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Web;
using System.Xml;
using System.IO;
using System.Security;
using System.Security.Cryptography;
using System.Net;
namespace Com.Alipay
{
public class Service
{
// Fields
private string _input_charset;
private string _notify_url;
private string _partner;
private string _return_url;
private string _seller_email;
private string GATEWAY_NEW;
// Methods
public Service() { }
public string AlipayInterface(SortedDictionary<string, string> sParaTemp)
{
return "";
}
public string Create_direct_pay_by_user(SortedDictionary<string, string> sParaTemp)
{
sParaTemp.Add("service", "create_direct_pay_by_user");
sParaTemp.Add("partner", this._partner);
sParaTemp.Add("_input_charset", this._input_charset);
sParaTemp.Add("seller_email", this._seller_email);
sParaTemp.Add("return_url", this._return_url);
sParaTemp.Add("notify_url", this._notify_url);
string strButtonValue = "确认";
return Submit.BuildFormHtml(sParaTemp, this.GATEWAY_NEW, "get", strButtonValue);
}
public string Query_timestamp()
{
string url = this.GATEWAY_NEW + "service=query_timestamp&partner=" + Config.Partner;
XmlTextReader Reader = new XmlTextReader(url);
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(Reader);
return xmlDoc.SelectSingleNode("/alipay/response/timestamp/encrypt_key").InnerText;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。