Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Prepopulate the PayPal Form Variables

Posted on 2011-02-27
3
Medium Priority
?
587 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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 Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

926 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