Solved

Prepopulate the PayPal Form Variables

Posted on 2011-02-27
3
567 Views
Last Modified: 2012-05-11
Only some of the Buy Now fields are pre-populated.

I need the correct variable names.

Here is my form code:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<input type="hidden" name="first_name" value="David"/> OK
<input type="hidden" name="last_name" value="Martin"/> OK
<input type="hidden" name="address_street" value="7005 Southwind Drive"/>

<input type="hidden" name="credit_card_number" value="abc"/>
<input type="hidden" name="city" value="Biloxi"/> OK
<input type="hidden" name="state" value="MS"/> OK
<input type="hidden" name="zip" value="39532"/> OK
<input type="hidden" name="telephone" value="228-396-5708"/>
<input type="hidden" name="mm" value="01"/>
<input type="hidden" name="yy" value="13"/>
<input type="hidden" name="email" value="dovberman@cableone.net"/>  OK
<input type="hidden" name="no_email" value="1"/>
   
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="2GEF2YNF55VLJ"/>

<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif"  
    name="submit" alt="PayPal - The safer, easier way to pay online!"/>
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/>

</form>


The input fields marked OK are prepopulating.
I have determined that I need the correct names for them.

For instance <input type="hidden" name="address_street" value="7005 Southwind Drive"/>
does not prepopulate because "address_street" is not the correct variable name.

Where can I find the correct variable names?

Thanks,

0
Comment
Question by:Dovberman
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
mayank_joshi earned 250 total points
ID: 34990972
this is an example form:-

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">  

 
 
 
 <input type="hidden" name="cmd" value="_cart">  

 
 
 
 <input type="hidden" name="business" value="seller@designerfotos.com">  

 
 
 
 <input type="hidden" name="item_name" value="hat">  

 
 
 
 <input type="hidden" name="item_number" value="123">  

 
 
 
 <input type="hidden" name="amount" value="15.00">  

 
 
 
 <input type="hidden" name="first_name" value="John">  

 
 
 
 <input type="hidden" name="last_name" value="Doe">  

 
 
 
 <input type="hidden" name="address1" value="9 Elm Street">  

 
 
 
 <input type="hidden" name="address2" value="Apt 5">  

 
 
 
 <input type="hidden" name="city" value="Berwyn">  

 
 
 
 <input type="hidden" name="state" value="PA">  

 
 
 
 <input type="hidden" name="zip" value="19312">  

 
 
 
 <input type="hidden" name="night_phone_a" value="610">  

 
 
 
 <input type="hidden" name="night_phone_b" value="555">  

 
 
 
 <input type="hidden" name="night_phone_c" value="1234">  

 
 
 
 <input type="hidden" name="email" value="jdoe@zyzzyu.com">  

 
 
 
 <input type="image" name="submit" border="0"  

 
 
 
 
 
 
 
 src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif"  

 
 
 
 
 
 
 
 alt="PayPal - The safer, easier way to pay online">  
</form> 

Open in new window


the following link may be helpful:-
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_formbasics
0
 
LVL 9

Expert Comment

by:mayank_joshi
ID: 34990978
0
 

Author Closing Comment

by:Dovberman
ID: 34991557
Thank you.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question