help with custom fields

W7AIA
Contributor
Contributor

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
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
block of code.
The payments are successful but no custom form data is returned. What am I doing wrong?
 
Thank you.
Login to Me Too
1 REPLY 1

Nexus_Software
Contributor
Contributor

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

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.