Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple solution to integrate PayPal on ASP.NET MVC site

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.

like image 330
weilin8 Avatar asked Oct 27 '10 02:10

weilin8


1 Answers

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.

like image 82
Jeroen Avatar answered Oct 13 '22 04:10

Jeroen