Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le forum de Communauté ne sera plus disponible à partir du 30 Juin 2025. Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎Jan-02-2020
Country: United States
Type: Personal
aanders50
aanders50
New Community Member
1
Post
0
Kudos
0
Solutions
Active
View all
Latest Contributions by aanders50
  • Topics aanders50 has Participated In
  • Latest Contributions by aanders50

Information on HTML form fields that can be used w...

by aanders50 in PayPal Payments Standard
‎Jan-02-2020 12:56 PM
‎Jan-02-2020 12:56 PM
Hello, I made a small html form that submits to https://www.paypal.com/cgi-bin/webscr with pre-populated fields, it all works as expected with the only issue being that there seems to be a character-limit on the "item_name" field (~127 characters) and so I am trying to see if there are other fields I can use for a longer print-out.   Here is an example of the form (with private information omitted)   <form name="_xclick" id="paypalForm" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" id="business" value="mypaypalemail"> <input type="hidden" name="currency_code" id="currency_code" value="USD"> <input type="hidden" name="item_name" id="item_name" value=""> <input type="hidden" name="amount" id="amount" value="0"> <input type="image" src="paypal.png" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> During the submit button phase I populate the "item_name" field and then it sends the user to PayPal to finish/approve the transaction, however, if my text in "item_name" looks like the following (the following is the Form Data in the XHR call for ITEM_NAME)   First Name: John | Last Name: Doe | Email: myemail | Discord: MyDiscordID | Total: $21.00 | Custom Dino Color x 5 ($7.50) | Dino Full Imprint x 5 ($7.50) | Select Dino x 3 ($6.00) | $20 BONUS ACTIVE   It will get cut off in the PayPal purchase details section to something like  First Name: John | Last Name: Doe | Email: myemail | Discord: MyDiscordID | Total: $21.00 | Custom Din   I am having trouble locating documentation on what other field names are available for form submission and their character counts so that I can get the entire message somewhere on the user's purchase details. Or there is a chance I am doing something completely wrong, as I do not uri/l encode the post and maybe I should be doing that instead?  Just trying to get this to fully work and I would guess I would never go over 250 characters.   Thank you!   ... View more
Labels:
  • Labels:
  • PayPal HTML Buttons
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros