Asp.net Paypal Shopping Cart

The Paypal Shopping Cart project is done using Asp.Net with C#.

The Paypal shopping cart project gets the shopping cart built when any other application makes an HTTP post of the details to the shopping cart. The Shopping Cart uses Paypal as the payment processor.

In the shopping cart page all the cart details are displayed in the html table format(i,e) item_name, no of items, currency, net amount of each item and the total of net amount of all items.

From the paypal shopping cart page the user needs to enter the e-mail address to receive the receipt of the transaction details.

When the user hits the “PayNow” button from the shopping cart page, he is redirected to the Paypal page where the user can review his payment details and make the payment. The payment process takes place internally in the Paypal and once the payment is completed, the user is redirected back to the shopping cart site where the payment status is displayed to the user.

Mean while an IPN(Instant Payment Notification) script will run internally when the payment is made in the Paypal. This script gets the payment transaction details in the form of post variables from the Paypal. These post variables are processed and the details are mailed to the user as well as to the admin of this site.

If the payment status is completed an email will be sent to the user and to the admin with the list of transaction details. If the payment status is pending or denied emails will be sent to the user. If the payment status is other than mentioned above then an email is sent to the admin regarding the failure notice.