简单的解决方案整合贝宝在ASP.NET MVC网站 [英] Simple solution to integrate PayPal on ASP.NET MVC site

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

问题描述

有许多解决方案/贝宝提供的网站,用支付宝付款集成的产品。我想知道什么是贝宝集成到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网站HTML表单。但是,我花了一些时间来找出哪些被要求隐藏表单域,并且可选字段我还可以用它来进一步配置付款流程。我发表我的经历在我的博客:<一href=\"http://buildingwebapps.blogspot.com/2012/01/single-item-paypal-buttons-and.html\">http://buildingwebapps.blogspot.com/2012/01/single-item-paypal-buttons-and.html.在那里,你也可以找到源头code为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网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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