Integration Guide

Table Of Contents
Website Payments Standard Integration Guide September 2008 61
Single-Item Payments – Buy Now Buttons
Sample HTML Code for Buy Now Buttons
1
bottom of the Add a Buy Now button to your website page and click the Create Another
Button button. Then follow the instructions for “Page 1 – Specifying the Basic Features of the
Buy Now Button” on page 52, beginning with Step 5. The pages of the button creation tool
retain the options that you previously specified.
Avoiding Problems With Pasted HTML Code
After you paste the code onto your webpage or into your email, ensure that it matches exactly
the code that you copied from PayPal. Pasted code may not match the generated code for the
following reasons:
z You did not copy all of the generated code.
z Your editing tool may have special areas for pasting HTML code and other areas for
pasting URLs and display text. Be sure you paste the generated code into a field that
accepts HTML code or URLs.
z Your editing tool might change some characters in the pasted code.
Sample HTML Code for Buy Now Buttons
The sample HTML code in this section demonstrates various features of Buy Now buttons:
z “Sample HTML Code for a Basic Buy Now Button” on page 61
z “Sample HTML Code for Buy Now Buttons With Product Options” on page 62
z “Sample HTML Code for a Buy Now Button that Prompts for Quantities” on page 66
To protect against malicious users tampering with the HTML code for your Buy Now buttons
and submitting fraudulent contributions, see Chapter 6, “Securing Your Website Payments
Standard Buttons.”
IMPORTANT: Organizations with significant payment volume are required to take
precautions on securing Website Payment Standard buttons.
Sample HTML Code for a Basic Buy Now Button
The sample HTML code below illustrates a basic Buy Now button with these features:
z An item named “Hot Sauce–12 oz. Bottle”.
z An item price of $5.95 USD.
z PayPal calculates tax and shipping based on rates that you set up in your PayPal account.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="herschelgomez@xyzzyu.com">