Solved

Prepopulate the PayPal Form Variables

Posted on 2011-02-27
3
572 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 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
Suggested Courses

759 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