User's Manual
Table Of Contents
- Preface
- Introduction
- PayPal Payments Overview
- Getting Started
- PayPal Account Optional
- Creating Buy Now and Donation Buttons
- Creating Shopping Cart Buttons
- Adding PayPal to Your Third- party Shopping Cart
- Custom Payment Pages
- Calculating Shipping, Handling, and Tax
- Creating Customer Contact Telephone
- Auto Return
- Backend Integration - Payment Notifications
- Using Multiple Currencies
- Language Encoding for Your Data
- Testing
- Processing eChecks
- Security
- HTML Samples
- IPN and PDT Variables
- About These Tables of Variables
- test_ipn Variable in Sandbox
- IPN Variables in All Posts
- Buyer Information
- Basic Information
- Advanced and Custom Information
- Shopping Cart Information
- Currency and Currency Exchange
- Auctions
- Mass Payment
- Subscriptions Variables
- Dispute Notification Variables
- PDT-Specific Variables
- Country Codes
Merchant User Manual and Integration Guide May, 2005 141
HTML Samples
Prepopulating Your Customer’s PayPal Sign-Up
A
Prepopulating Your Customer’s PayPal Sign-Up
If you have already collected your customer’s information, you can pass this information to
PayPal to prepopulate the first page of a new customer’s sign-up. The fields and parameters
are listed in the following table. You can pass all or none of this data, as necessary. While your
customer’s sign-up page will be prepopulated, it will still be editable.
To pass this information to the PayPal payment pages, post the variable name and the
associated data to PayPal in the HTML in the form of
variable name = value. You will also
need to change your cmd value to _ext-enter and add a new variable, redirect_cmd,
whose value should be _xclick. For more examples, please to the following sample code.
Prepopulation for Website Payments Buttons
TABLE A.5 Prepopulation Variables for Website Payments
Variable Value Requirements
Character
Limit
email Customer's email address Alphanumeric characters only. 127
first_name First name Alpha characters only. 32
last_name Last name Alpha characters only. 64
address1 Street (1 of 2 fields) Alphanumeric characters only. 100
address2 Street (2 of 2 fields) Alphanumeric characters only. 100
city City Alphanumeric characters only. 40
state State Must be 2 character official
abbreviation.
32
zip Zip Numeric characters only. 32
country Sets shipping and billing country. Please
to Appendix C for acceptable country
codes.
Alphabetic characters only. 2
lc Defines the buyer's checkout flow
language. Available languages are US
English, UK English, German, and
Japanese.
Alphabetic characters only. 2
night_
phone_a
The area code for U.S. phone numbers, or
the country code for non-U.S. phone
numbers. This will prepopulate the
buyer’s home phone number.
Numeric characters only. 3