help with custom fields
W7AIA
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Feb-07-2022
04:04 PM
I cannot figure out to successfully return my custom form data with a PayPal payment. Below is a sample of one of my custom form lines:
<div class="form-row">
<div class="col-4 text-right"><label class="col-form-label">Name:</label></div>
<div class="col-8"><input type="hidden" name="Name" value="mbr_name"/><input id="mbr_name" class="form-control" type="text" style="font-size: 14px;" /></div>
</div>
All of the custom fields are contained within the
block of code.
The payments are successful but no custom form data is returned. What am I doing wrong?
Thank you.
Labels:
- Labels:
-
PayPal HTML Buttons
1 REPLY 1
Nexus_Software
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar-04-2022
02:10 AM
Hello @W7AIA ,
One way to include custom data for a PayPal Sstandard button is to use the <input name = "custom">
E.g.
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="34HWEWGF2UAAY">
Enter a Message to the Seller: <textarea name="custom"></textarea>
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Thank you.
Powered by Custom Software : NexWebSites.com PayPal Developers
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Assistance Needed: Passing and Retrieving Custom Data in PayPal Webhook Payload in PayPal Payments Standard
- Cannot create developer account from invitation link in Braintree Client-side Integration (JS, iOS, Android SDKs)
- iDEAL payments being refunded back to customers in PayPal Payments Standard
- Hello. Can I hide Zip code field from payment? in REST APIs
- Charge a customer for the remaining balance after a purchase has been made? in REST APIs