Search code examples
asp.netentity-frameworke-commercepayment-gatewayshopping-cart

How can I make an asp.net website which uses entity framework into a shopping cart which can integrate with a payment gateway?


I am working on this website: http://wolves.phiresky.com/

It is an ASP.NET webpage using entity framework.

  1. How can I make this a shopping cart?
  2. How can I make this a shopping cart which can integrate with PayFast.co.za Payment Gateway?

Solution

  • The way that most developers create a shopping cart, including myself, is to create a object, often called cart, and then place that cart object into the visitor's session. This way the cart is accessible via the session object each page request. Integrating with a payment gateway is a whole other matter. To do that you will need to review the api documentation from the payment gateway company and then call the payment api's as appropriate.