在 ASP.NET MVC 站点上集成 PayPal 的简单解决方案 [英] Simple solution to integrate PayPal on ASP.NET MVC site

查看:24
本文介绍了在 ASP.NET MVC 站点上集成 PayPal 的简单解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PayPal 为网站提供了许多与 PayPal 支付相集成的解决方案/产品.我想知道将 PayPal 集成到 ASP.NET MVC Web 应用程序的最简单或最简单的解决方案是什么.我应该使用哪种解决方案?如果以前做过这件事的人可以分享他或她的经验,那将会很有帮助.谢谢.

There are many solutions/products that PayPal provides for websites to integrate with PayPal payment. I would like to know what's the simplest or easiest solution to integrate PayPal into ASP.NET MVC web applications. Which solution I should use? It would be helpful if someone who had the done this before can share his or her experience. Thanks.

推荐答案

最近我在 ASP.NET MVC Razor 视图中实现了一个 PayPal立即购买"按钮.最后,按钮只是一个发布到 PayPal 网站的 HTML 表单.但是,我花了一些时间来找出哪些隐藏表单字段是必需的,以及哪些可选字段我也可以用来进一步配置付款流程.我在我的博客上发表了我的经验:http://buildingwebapps.blogspot.com/2012/01/single-item-paypal-buttons-and.html.您还会在那里找到 MVC Html 辅助方法的源代码,该方法可以减少呈现单项 PayPal 按钮的工作量.

Recently I implemented a PayPal 'Buy Now' button in a ASP.NET MVC Razor view. In the end the button is just a HTML form that is posted to the PayPal website. However, it took me some time to find out which hidden form fields were required, and which optional fields I could also use to further configure the payment process. I have published my experiences on my blog: http://buildingwebapps.blogspot.com/2012/01/single-item-paypal-buttons-and.html. There you will also find the source code for an MVC Html helper method that makes rendering single-item PayPal buttons less work.

这篇关于在 ASP.NET MVC 站点上集成 PayPal 的简单解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆