Add custom fields to checkout process

brittons99
New Community Member

I am treying to add paypal buttons to my website. I need to know specific information from my customers. I would like these to be custom fields in the checkout form.  How do I do this???

Login to Me Too
2 REPLIES 2

pumbuslerish
Contributor
Contributor

If you're building your own "buy" mechanism in HTML, then this kind of thing works (see below). It's the code for a "buy" form that the customer has to fill in.

 

The example here collects a text string (Name of animal) from the customer, and also gives the customer a choice of three"Age range"s, with a different price for each range. When the seller gets notification of the sale, the "Name of animal" and the "Age range" are included in the report.

 

If you don't deal in HTML, then somebody else will have to answer this question.

 


          <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
            <input type="hidden" name="cmd" value="_cart" />
            <input type="hidden" name="business" value="xxxxx" />
            <input type="hidden" name="item_name" value="xxxxx" />
            <input type="hidden" name="item_number" value="xxxxx" />
            <table>
              <tr>
                <td>
                  <input type="hidden" name="on1" value="Name of animal" />Name of animal
                </td>
              </tr>
              <tr>
                <td>
                  <input type="text" name="os1" maxlength="200" />
                </td>
              </tr>
              <tr>
                <td>
                  <input type="hidden" name="on0" value="Age range" />Age range
                </td>
              </tr>
              <tr>
                <td>
                  <select name="os0">
                    <option value="any age">any age &pound;15.00</option>
                    <option value="up to 8 years">up to 8 years &pound;10.00</option>
                    <option value="up to 4 years">up to 4 years &pound;5.00</option>
                  </select>
                  <!-- Specify the price that PayPal uses for each option. -->
                  <input type="hidden" name="option_index" value="0">
                  <input type="hidden" name="option_select0" value="up to 4 years">
                  <input type="hidden" name="option_amount0" value="5.00">
                  <input type="hidden" name="option_select1" value="up to 8 years">
                  <input type="hidden" name="option_amount1" value="10.00">
                  <input type="hidden" name="option_select2" value="any age">
                  <input type="hidden" name="option_amount2" value="15.00">
                </td>
              </tr>
            </table>
            <input type="hidden" name="image_url" value="" />
            <input type="hidden" name="return" value="http://www.xxxxxx.com/return.shtml" />
            <input type="hidden" name="cancel_return" value="http://www.xxxxxxx.com/startagain.shtml" />
            <input type="hidden" name="cn" value="optional instructions" />
            <input type="hidden" name="currency_code" value="GBP" />
            <input type="hidden" name="no_note" value="1" />
            <input type="image" src="images/btn_cart_LG.gif" border="0" name="submit" alt="PayPal  The safer, easier way to pay online." />
            <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
            <input type="hidden" name="add" value="1" />
          </form>

 

 

Login to Me Too

PayPal_paula
Moderator
Moderator

Hi pumbuslerish, 

 

Welcome the the Community Forum, We are always happy to have new members. 

 

Thanks for you post and it was a great and detailed response. 

 

Kudos to you

Paula 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.