Lately I’ve been creating a lot of PayPal “Buy Now” and “Add to Cart” buttons for a few of my customer’s websites. The problem with creating these buttons is that they require an email address to be added to the HTML code, which in turn gets easily harvested by spam-bots.

A simple alternative to using an email address is to use a “referral code” instead. To get the referral code login to PayPal and click on “Referrals” located near the footer of the page. On that page you will find a link like: https://www.paypal.com/us/mrb/pal=VXDE78NC4F3K2. Copy the “VXDE78NC4F3K2″ part of the code and replace the hidden input value of “business” with it in your button code.

Original Code:
<input type="hidden" name="business" value="name@example.com" />

Revised Code:
<input type="hidden" name="business" value="VXDE78NC4F3K2" />

You may ask why I wouldn’t just use PayPal’s encrypted payment buttons. Well, By creating non-encrypted buttons you can easily edit them (e.g. change Price, Item Name, etc.), create new ones fast and dynamically input values via PHP.

It is good to share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Furl
  • Ma.gnolia
  • NewsVine
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Categories: Website Design ~ Tags: , , , , ~ Trackback

Leave a Reply

.htaccess accessibility Apple articles browser bugs chrome CSS domain names ecommerce email ems eps fonts google HTML http https IE Internet Explorer interview Mac menu PayPal plugins redirects Safari SEO spam SSL survey tools web standards website design Windows WordPress