繁体   English   中英

如何使用 ASP.Net 和 C# 从 Paypal 支付网关的返回 URL 中获取交易详细信息

[英]How to Get Transaction Details from return URL from Paypal Payment Gateway using ASP.Net and C#

如何在 ASP.Net 和 c# 中集成沙箱 Paypal 帐户,请提供完整示例代码。 我编写了代码以获取成功交易详细信息,如下所示,但出现错误:

if (Request["txn_id"] != "" || Request["txn_id"] != null)
{
    txttranno.Text = Request["txn_id"].ToString();
    string finalPaymentAmount = Request["amt"].ToString();
    string payment_status = Request["st"].ToString();
    txttranno.Text = "$" + finalPaymentAmount;
    //TranStatus.Text = payment_status;
    //string processor = "PayPal";
    txtordno.Text = Session["OrderID"].ToString();
}

看看: https : //github.com/davidduffett/Moolah/tree/master/Moolah/Moolah

可能这会帮助你。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM