PayPal Scripts, Solutions, & Video Tutorials

A lot of these samples are code samples that have been collected from various developers, and placed here to help others that need examples of working code. Hopefully you will find example for what you are looking for.

Most PayPal buttons can be created from your PayPal account by using the button factory. However, some things you can not directly add to your buttons such as coupons/discounts and etc. These features require the use of either scripts, or 3rd party shopping carts that support features like this. If you want to use a 3rd party shopping cart you can find a list of them here. Otherwise if you want to use a script the files and instructions on these pages can provide you with the necessary information to create a script.

For more detailed information on the PayPal buttons, I would suggest viewing the Developers Guide. You can find the developers guide for Website Payments Standard here.

NOTE The JavaScript used in this presentation is NOT browser specific, or linked to a specific version of any browser. It works for ALL browsers from IE4.0 and NN4.7 to the present. If your browser supports JS (version 1.1, or greater), it is able to execute this code. No exceptions! Plus, this is all client-side support of PayPal, and requires no server code!

Links available in this article. All code is available (HTML and JavaScript):

Alot of answers can be found at the links below:
PayPal Integration Center
PayPal Developers Community
PayPal Merchant Technical Services KnowledgeBase
PayPal API Endpoints

Basic PayPal Button Examples/Sample Code
    • Buy Now/Pay Now Buttons.
      • Buy now/pay now buttons
      • Buy now/pay now buttons using discounts

    • Add To Cart Buttons.
      • Add to cart buttons
      • Add to cart buttons using discounts

    • Subscribe Buttons.
      • Subscribe Buttons
      • Subscribe Button With Trial Periods
      • Subscribe Button With Limits on Billing Cycles
      • Subscribe Buttons With Product Options
      • Modify Subscription Button
      • Unsubscribe Button
      • Subscribe Button With Password Management
      • Subscribe Button That Reattempts Payments

    • Donation Buttons.
      • Code for a Basic Donate Button
      • Donate Button With a Fixed Contribution Amount

    • Gift Certificates.
      • Sample Gift Certificate Button

    • Cart Up Load CMD Buttons.
      • Cart Upload Button

Scripts/Solutions
Text Tutorials
Video Tutorials
Misc.

info@capleswebdev.com