Solved

Prepopulate the PayPal Form Variables

Posted on 2011-02-27
3
557 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
Comment Utility
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
Comment Utility
0
 

Author Closing Comment

by:Dovberman
Comment Utility
Thank you.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now