- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Labels:
-
PayPal HTML Buttons
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here's a list of all the standard variables you can use in this type of integration.
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here's a list of all the standard variables you can use in this type of integration.
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- Create Pay Links using PayPal API in REST APIs
- Advanced checkout and no 3DS information in the response in REST APIs
- Compliance violation. flag based on the account origin ? in Sandbox Environment
- Non US citizens cannot activate paypal business account for advanced checkout in PayPal Payments Standard