Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Prepopulate the PayPal Form Variables

Posted on 2011-02-27
3
Medium Priority
?
579 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
mayank_joshi earned 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

722 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