Rick Strahl's Weblog  

Wind, waves, code and everything in between...
.NET • C# • Markdown • WPF • All Things Web
Contact   •   Articles   •   Products   •   Support   •   Advertise
Sponsored by:
Markdown Monster - The Markdown Editor for Windows

PayPal Integration with ASP.NET article posted


:P
On this page:

As if I have too much time on my hands <g>. Ok, maybe i was feeling guilty for taking the day off and going sailing today...

Anyway, I spent some time over the last few days to cleanup some code I had originally written a while back for PayPal integration into the West Wind West Wind Web Store and decided to write this stuff up into an article. Although there's much information on this topic available already, when I was originally looking for it was hard to pull it together. A lot of the content also was focused on using PayPal's default order processing HTML interfaces which is not really a good fit for a West Wind Web Store. So this article goes at it from the 'as seamless as possible' angle which is a little different. I've also tried to get everything needed together in one article. You can find the article here:

http://www.west-wind.com/presentations/PayPalIntegration/PayPalIntegration.asp

The article is using ASP.NET/C# but the concepts should be easy to apply to any Web development environment.

I've actually been surprised how many orders I get in my store through PayPal. When I originally hooked this up a few months back I thought of it more of a novelty and another bullet item for the store software, but there are quite a few people left in this world who don't trust the Internet (or the vendors for that matter) with their credit cards. PayPal is nice in that respect in that they provide the ability to keep the credit card from any vendor at all - now you just have to worry that PayPal stays save and honest. <g>

On the merchant front too I've found a lot of people actually using the PayPal functionality as their main payment mechanism instead of merchant services. A lot of small operations or personal sites don't want to deal with merchant services it seems. I can't blame them - most merchant providers or at least the 'resellers' are crooks trying to make a quick buck of the unsuspecting vendor. Luckily that seems to be changing somewhat with better and more consistent gateway services appearing with reasonable prices (my experience with MerchantPlus and Authorize.Net has been a real joy actually). Anyway, PayPal seems to fit the bill for smaller or personal outfits where a merchant account may not make sense.


The Voices of Reason


 

Julian
February 05, 2005

# re: PayPal Integration with ASP.NET article posted

I'm in total agreement regarding PayPal and it's simple integration in to a web site to allow a vendor to take orders on-line.

We are indeed a small outfit, and sell simple products. We did nto have a lot of money to spend, and we looked around at various payment gateway options. Most require a shopping cart, others require a more complete back-end database. Then there are the associated fees with development, hosting companies, payment gateway providers, and then the dreaded transaction fees and percentages.

I have to say that using PayPals merchant tools was easy, even for anyone with little development or coding experience; we setup a PayPal account, added the PayPal HTML code to our pages (about 10 lines of HTML that PayPal generates for you!) and we were away! Adding one to several products is easy - Once we had added the HTML, we had the ability to take orders on our web site within 15 minutes.

Okay, we pay the PayPal charges, but all in all a very effective way of adding web sales to your site in no time at all.

Now we are taking many orders every day. Worth every second of the 15 minutes spent!

Try the cart for yourself at http://www.blinkers.co.uk

Only downside that we can see is that we may be missing out on visitors who don't like using PayPal and would prefer to order by punching in their own card details.

Thanks to Smallworld IT (http://www.smallworldit.com) for assisting with hosting and getting us up and running so quickly!

ASP.NET Forums
June 04, 2007

# Shopping Cart to paypal - ASP.NET Forums


Shawn Gordon
August 19, 2007

# re: PayPal Integration with ASP.NET article posted

Great article and easily integrated in to any site, as you state. However, what if someone were to run a special and want to offer a few free items or a free service for a limited time?

Rick Strahl
August 19, 2007

# re: PayPal Integration with ASP.NET article posted

Shawn, that's really an application detail you need to figure out. If you're building your own shopping cart you'd have the shopping cart logic just zero out those items before the total is sent to PayPal. And if your complete order total is zero you simply don't do the PayPal (or other payment) processing.

West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2025