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.
问题:
回答1:
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.
回答2:
Integrating PayPal with MVC is not your issue. Integrating your ecommerce checkout process is the hard part. PayPal has a very nice pre-packaged assembly you just need to reference and your basically done.
My main point is that your technology stack isn't what you should be focusing on here. Instead learn the PayPal API and how it fits into your existing codebase.