Help Article

How do I add user selection options to my PayPal button?

To add option fields to pass through additional information (such as text), use our four option variables: on0, os0, on1, and os1. These proprietary variables must be used in the order shown; otherwise, PayPal's system won't recognize them.

The button generator on the PayPal site lets you create two fields, but if you go into the code and manually edit the lines, you can get three or four option fields.
 

Drop-down menus

The four drop-down menus would look like this:

Color
<select name="on0">
   <option value="Grass">Grass Green
   <option value="Periwinkle">Periwinkle
   <option value="Dandelion">Dandelion
   <option value="Vermilion">Vermilion
   <option value="Violet">Violet
</select>

Size
<select name="os0">
   <option value="Large">L
   <option value="Medium">M
   <option value="Small">S
</select>

Cut
<select name="on1">
   <option value="Cut 1">Cut 1
   <option value="Cut 2">Cut 2
</select>

Style
<select name="os1">
   <option value="Style 1">Style 1
   <option value="Style 2">Style 2
</select>


Text fields

The four text fields would look like this:

Color
<input type="text" select name="on0">
</select>

Size
<input type="text" select name="os0">
</select>

Cut
<input type="text" select name="on1">
</select>

Style
<input type="text" select name="os1">
</select>


See also:
Create a Buy Now Button
List of HTML variables for PayPal Payments Standard
 
We’re sorry, the page you’re looking for is no longer available. Please try your search again in our Help Center if you have a question or want to contact us.