Page 1 of 1

How to integrate PayPal

Posted: Mon Mar 08, 2010 6:02 pm
by Neo
Do you want to integrate PayPal in your shopping cart or web site? Here are some free source code samples to help you get started.

Download the following Paypal Integration Source Code written in ASP.Net - C#.
PayPalCSharp.zip
(321.14 KiB) Downloaded 503 times
While we always encourage you to go to PayPal for their official documentation, this sample code will help to jump-start your development efforts as you build PayPal features into your shopping cart. PayPal does offer several ways to integrate with them. This is just a quick starter kit - with no warranties of any kind. Only download the source code if you agree to these terms.

Features included:
  • Home page with a "Product List" that have links to add to cart
  • "View Cart" Page
  • "PayPal Checkout" Page with a link to checkout
  • One "master page" you can edit to get a desired look and feel across the website.
These are designed for an ASP.Net developer. If you are not an ASP.Net developer/coder, then this starter kit/sample code would be of no use to you.

Basic Steps
  1. Sign up for a PayPal account. They have personal, premier, and business accounts. You will need to upgrade to a premier or business account to accept credit cards. PayPal is always happy to let you upgrade.
  2. Download the source code above
  3. Put in your PayPal email address in the SendPayPal.aspx page
  4. Tailor the Master Page to have the look desired
  5. Add your products to the xml file
  6. Add your pictures to the pictures folder
More complete PayPal integration details are in the readme.txt that comes with the .zip file.

Read PayPal Website Payments Standard Integration Guide to get a good idea on the integration.

You can also find some sample source codes form this page.

You can also check this integration wizard made by PayPal.

Re: How to integrate PayPal

Posted: Tue Mar 09, 2010 12:29 pm
by Neofriend
Thank you Neo. Am sure this would make more sense when I learn ASP.NET - :) Will surely do now.

Re: How to integrate PayPal

Posted: Wed Mar 10, 2010 4:01 pm
by Neo