My Paypal payments are not showing all of the options.

LutonAC
Contributor
Contributor

I have added a number of html options to my sites paypal buttons and as far as I can tell the coding is correct.  The problem I am having is that once the payment has been made not all the information is getting sent through.  ie. there is whole bunch of contact information but I am only getting 'First Name'.

The strange thing is that I am not getting this on one form all the time.  It happens radomly on different forms at different times.

Any help I can get with this would be great as I am pulling my hair out on this one.

Login to Me Too
4 REPLIES 4

snowshoe
Frequent Advisor
Frequent Advisor

Couple of the thoughts here, as we don't have an example of your item button code, we can only guess.

 

Are you using the online button creator to generate your item button code?   If yes, after you created the code, did you modify or add any additional lines of code, i.e., you added more option variables?   If you did, the data will not show.  There are some changes you can make to "hosted" item button code and it will still work however, the changes are minor.  Most PayPal HTML variables are protected and once the code is generated using the "hosted" method, adding or modifying the variables does not work. 

 

If you need some specific fields that cannot be generated using the online button creator, then you need to manually generate the item button code.  Using this method, the code is not "hosted" or "encrypted" but, is much more flexible to work with and you can even include custom scripting. 

 

What type of code are you currently using, Add to Cart, Donation, Buy Now, etc.?   That can also help with determining what's wrong.

 

Basically you've told the car mechanic your car won't start, now we need to see the car and look under the hood.

Login to Me Too

LutonAC
Contributor
Contributor

Here is one of the forms concerned.

 

https://web81.secure-secure.co.uk/lutonanglingclub.co.uk/forms/NewAdult.htm

 

I would like to stress that this is code I have inherited from a previous admin and this code has worked fine in the past.

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

Thanks for the link.  Found the main issue.  The "hosted_button_id" variable line was duplicated in the code as well as the command line variable.  What I did was remove all the page formatting and just redid the code removing any duplicate lines.  You can compare the code below to what you have, that should give you a better idea of the functionality and what was wrong with your page.

 

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<title></title>
    
 </head>
 <body>

<FORM action="https://www.paypal.com/cgi-bin/webscr" method="post">
<INPUT name="cmd" type="hidden" value="_s-xclick">
<INPUT name="hosted_button_id" type="hidden" value="XKXSFD4D6SRRN"> 

<INPUT name="on1" type="hidden" value="First Name:">
First Name:*&nbsp;&nbsp;
<INPUT name="os1" style="width: 219px;" required="required" type="text" maxlength="60">
<br><br>
<INPUT name="on2" type="hidden" value="Surname:">
Surname:*&nbsp;&nbsp;
<INPUT name="os2" style="width: 219px;" required="required" type="text" maxlength="60">
<br><br>
<INPUT name="on3" type="hidden" value="Date Of Birth:"> 
Date Of Birth:*&nbsp;&nbsp;
<INPUT name="os3" style="width: 219px;" required="required" type="text" maxlength="60">
<br><br><br>
Address Details:
<br><br>
<INPUT name="on4" type="hidden" value="House Number/Name:">
House Number/Name:*&nbsp;&nbsp;
<INPUT name="os4" style="width: 164px;" required="required" type="text" maxlength="60">
<br><br>
<INPUT name="on5" type="hidden" value="Street Name:">
Street Name:*&nbsp;&nbsp;
<INPUT name="os5" style="width: 260px;" required="required" type="text" maxlength="60">
<br><br>
<INPUT name="on6" type="hidden" value="Town/City:">
Town/City:*&nbsp;&nbsp;
<INPUT name="os6" style="width: 254px;" required="required" type="text" maxlength="60">
<br><br>
<INPUT name="on7" type="hidden" value="County:">
County:*&nbsp;&nbsp;
<INPUT name="os7" style="width: 249px;" required="required" type="text" size="20" maxlength="60">
<br><br>
<INPUT name="on8" type="hidden" value="Post Code:">
Postcode:*&nbsp;&nbsp;
<INPUT name="os8" required="required" type="text" size="20" maxlength="60">
<br><br><br>
Contact Details:
<br><br>
<INPUT name="on9" type="hidden" value="Email Address:">
Email Address:*&nbsp;&nbsp;
<INPUT name="os9" style="width: 164px;" required="required" type="text" maxlength="60">
<br><br>
<INPUT name="on10" type="hidden" value="Home Phone:">
Home Phone:*&nbsp;&nbsp;
<INPUT name="os10" style="width: 164px;" required="required" type="text" maxlength="60">
<br><br>
<INPUT name="on11" type="hidden" value="Mobile Phone:">
Mobile Phone:*&nbsp;&nbsp;
<INPUT name="os11" style="width: 164px;" required="required" type="text" maxlength="60">
<br><br><br>
If an Official Club Representative is submitting this form please enter their name here.
<br><br>
<INPUT name="on12" type="hidden" value="Representative Name:">
Representative Name:&nbsp;&nbsp;
<INPUT name="os12" style="width: 400px;" type="text" maxlength="60">
<br><br><br>
New Adult, No Key £70.00 GBP
<br>
New Adult + Key £74.00 GBP
<br>
New Adult, No Key + 3rd Rod £85.00 GBP
<br>
New Adult + Key + 3rd Rod £89.00 GBP
<br><br>
<INPUT name="on0" type="hidden" value="Please Choose An Option">
Please Choose An Option
<br><br>
<SELECT name="os0">
<OPTION value="New Adult, No Key">New Adult, No Key £70.00 GBP</OPTION>
<OPTION value="New Adult + Key">New Adult + Key £74.00 GBP</OPTION>
<OPTION value="New Adult, No Key + 3rd Rod">New Adult, No Key + 3rd Rod £85.00 GBP</OPTION>
<OPTION value="New Adult + Key + 3rd Rod">New Adult + Key + 3rd Rod £89.00 GBP</OPTION>
</SELECT>
<br><br><br><br>
<INPUT name="currency_code" type="hidden" value="GBP">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
  
  
</body>
</html>

 

Login to Me Too

LutonAC
Contributor
Contributor

Thanks for the code and I have altered all my forms to this, unfortunately I am still getting the same random failure to disclose all of the options data .Man Sad

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.