我是MVC.I的新手,我想把PayPal整合到我的网站上。我尝试这个链接http://logcorner.wordpress.com/2013/09/05/asp-net-mvc-paypal-integration/,一切都是ok.And现在如何在重定向操作method.My操作方法中获取一些信息
public ActionResult RedirectFromPaypal()
{
return View();
}在php中,如下所示:
$item_number = $_POST["item_number"];
$item_name = $_POST["item_name"];请帮帮我。
发布于 2014-03-15 00:21:41
我推荐阅读这篇通过PayPal设置结账和付款的tutorial。它非常好。它使用web表单,所以如果你需要一些面向MVC的东西,那么可以阅读一下这个tutorial。
这两者结合起来应该有你需要的一切。
更新
有关使用MVC的IPN的教程,请尝试how to use paypal with aspnet mvc。
发布于 2014-05-10 00:26:12
尝试以下2个链接http://blog.liamcavanagh.com/2012/06/how-to-use-paypal-with-asp-net-mvc/ http://buildingwebapps.blogspot.com/2012/01/single-item-paypal-buttons-and.html
在收到RedirectFromPaypal()的通知后,您将调用PayPal来获取事务详细信息,这些详细信息将是键/值对,您可以通过以下方式访问它们: string transactionID = Request"txn_id";string sAmountPaid = Request"mc_gross";
https://stackoverflow.com/questions/22410090
复制相似问题