WmptWap/weixinpay/nativepay.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;
using WMPT.Weixin;
using tenpayApp;
namespace Html5.weixinpay
{
/// <summary>
/// 原生态支付
/// </summary>
public partial class nativepay : System.Web.UI.Page
{
public String appId = TenpayUtil.appid;
public String timeStamp = "";//时间戳
public String nonceStr = "";//随机字符串
public String packageValue = "";//订单详情扩展字符串
public String paySign = "";//签名
protected void Page_Load(object sender, EventArgs e)
{
string orderid = HjNetHelper.GetQueryString("orderid");
decimal allmoney = Convert.ToDecimal(HjNetHelper.GetQueryString("price"));
weixinPay(orderid, allmoney);
}
/// <summary>
/// 微信支付
/// </summary>
/// <param name="payorderid"></param>
protected void weixinPay(string orderid, decimal price)
{
//添加支付记录,主要用来在支付过程中,失败后,重新支付
PayOrderLog dalpaylog = new PayOrderLog();
string payorderid = dalpaylog.GetPayBatch(orderid); ;
/*********************准备去支付 添加支付日志********************************/
PayOrderLogInfo info = new PayOrderLogInfo();
info.OrderId = orderid;
info.AddTime = DateTime.Now;
info.Batch = payorderid;
info.Price = price;
info.PayType = 0;
info.PayTime = Convert.ToDateTime("1900-1-1");
info.State = 0;
info.PayCallTime = Convert.ToDateTime("1900-1-1");
info.Remark = "";
info.Reve1 = "5";
info.Reve2 = "";
dalpaylog.Add(info);
/*********************添加支付日志 over********************************/
后面还有 30 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
