Integration Guide

Table Of Contents
Website Payments Standard Integration Guide September 2008 95
Contribution Payments – Donate Buttons
Creating Advanced Donate Buttons on the PayPal Website
2
5. Add advanced variables to the HTML code of your payment button (optional).
If you are familiar with the HTML programming and the advanced HTML variables
supported by Website Payments Standard payment buttons, you can enter them here. Select
the checkbox, and then enter the variables in the text box that appears below it.
Enter any advanced HTML variables in the following, name/value-pair format:
variableName=allowableValue
For example, you want PayPal to display custom payment pages during checkout that you
set up in your account profile. Use the HTML variable page_style with the name you
gave to your custom payment page. If you were to include the variable in HTML code that
you write manually, you would use the standard HTML format:
<input type="hidden" name="page_style" value="myPageStyle">
Enter the variables in the text box using the shortened, name/value-pair format, instead:
page_style=myPageStyle
Do not enclose values in quotes, even if values contain spaces. PayPal surrounds the value
from the equal sign (=) to the end of the line with quotes in the generated HTML code.
For more information, see Chapter 11, “HTML Form Basics for Website Payments
Standard.”
6. Do one of the following:
Click the Create Button button if you specified all the features for your button.
Follow the instructions for “Copying and Pasting the Donate Code” on page 95.
Scroll to the top of the page and click the Step 1 bar if you want to adjust the basic
features of your button.
Follow the instructions for “Step 1 – Specifying Basic Features of Your Donate Button”
on page 89, beginning with Step 5.
Scroll to the top of the page and click the Step 2 bar if you want to change whether to
save your button in your PayPal account.
Follow the instructions for “Step 2 – Saving Your Donate Button in Your PayPal
Account” on page 92.
Copying and Pasting the Donate Code
After you click the Create Button button, PayPal displays the You are viewing your button
code page. The page contains tabs with Donate code for specific situations:
z Website – Copy and paste the HTML button code on this tab onto the pages of your
website.
z Email – Copy and paste the URL email payment link code on this tab into email templates
and messages, or paste it onto webpages if your hosting provider does not allow you to
paste HTML code.
Regardless of saving your buttons in your PayPal account, you must copy and paste the code
that PayPal generates onto your own webpages and into email templates and messages.