paypalrecord.aspx.cs
来自「一个网上购物系统」· CS 代码 · 共 35 行
CS
35 行
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class PayPalRecord : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
if (!Page.IsPostBack) {
if (Request.QueryString["t"] != null) {
//make sure they can view this transaction
string transactionID=Request.QueryString["t"].ToString();
if (OrdersManager.UserCanView(User.Identity.Name, transactionID)) {
Commerce.PayPal.APIWrapper wrapper = new Commerce.PayPal.APIWrapper(SiteConfiguration.PayPalAPIAccountName,
SiteConfiguration.PayPalAPIAccountPassword, SiteConfiguration.PayPalAPICertificationPath,
SiteConfiguration.PayPalAPICertificationPassword);
lblTransaction.Text=wrapper.GetTransactionDetail(transactionID, "<br>");
}else{
lblTransaction.Text="您没有权限访问该记录";
}
}else{
lblTransaction.Text="订单号无效";
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?