DTcms.API/DTcms.API.Payment.alipaypc/Service.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Xml;

namespace DTcms.API.Payment.alipaypc
{
	public class Service
	{
		private string _partner = string.Empty;

		private string _key = string.Empty;

		private string _type = "1";

		private string _input_charset = string.Empty;

		private string _email = string.Empty;

		private string _return_url = string.Empty;

		private string _notify_url = string.Empty;

		private string GATEWAY_NEW = "https://mapi.alipay.com/gateway.do?";

		public Service()
		{
			this._partner = Config.Partner.Trim();
			this._key = Config.Key.Trim();
			this._type = Config.Type.Trim();
			this._input_charset = Config.Input_charset.Trim().ToLower();
			this._email = Config.Email.Trim();
			this._return_url = Config.Return_url.Trim();
			this._notify_url = Config.Notify_url.Trim();
		}

		public string Create_direct_pay_by_user(System.Collections.Generic.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._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 Create_partner_trade_by_buyer(System.Collections.Generic.SortedDictionary<string, string> sParaTemp)
		{
			sParaTemp.Add("service", "create_partner_trade_by_buyer");
			sParaTemp.Add("partner", this._partner);
			sParaTemp.Add("_input_charset", this._input_charset);
			sParaTemp.Add("seller_email", this._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 bool Send_goods_confirm_by_platform(string trade_no, string logistics_name, string invoice_no, string transport_type)
后面还有 66 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。