How to integrate PayPal

Web programming topics
Post Reply
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

How to integrate PayPal

Post by Neo » Mon Mar 08, 2010 6:02 pm

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 379 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.
Neofriend
Captain
Captain
Posts: 103
Joined: Wed Dec 23, 2009 3:37 pm
Location: Pakistan

Re: How to integrate PayPal

Post by Neofriend » Tue Mar 09, 2010 12:29 pm

Thank you Neo. Am sure this would make more sense when I learn ASP.NET - :) Will surely do now.
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: How to integrate PayPal

Post by Neo » Wed Mar 10, 2010 4:01 pm

Post Reply

Return to “Web programming”