Visual Studio: Adding Ecommerce Functionality

an except for the article ‘Visual Studio Community 2015: Adding Ecommerce Functionality’ by Brett Romero

In this article, we’re going to add an ecommerce solution to our site. The solution will be simple, consisting of a single page to handle the shopping cart, payment information and success or fail messages for the user.

We’ll submit our payment information to a mock ASP.NET Web API app. The Web API app will act like a credit card processor. It will consume JSON via POST. It will then send back an HTTP status code indicating success or failure. Based on this feedback, we can determine what to do. But we’ll keep it simple by showing the user a message based on the received status code.

While the solution is simple, it will demonstrate core components of any ecommerce solution. These include:

Listing of products to buy
Ability to add or remove products
Total price of products and purchase
Form to capture payment information
Connection to some third party credit card processor
Ability to display result from credit card processor
Upon success, deliver purchased product

Continue reading the article on Sitepoint…

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.