Support » Plugin: CP Contact Form with PayPal » Pass address to PayPal

  • Resolved taginternetconsulting


    Is there a way to set up the form to pass the contact info (name, address, phone, email) to PayPal? Also, my client would like the PayPal notification to populate the shipping info as well. His notification from PayPal used to include the shipping info (name, address) when we used a different plugin, but now that we switched to CP it isn’t doing that anymore. Is that something that needs to be done through the plugin or PayPal?

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople



    If you want to automatically forward some of the user information (name, address, …) to PayPal you will have to manually identify that information from your form. Note that the only field identified in the form is the email, the other fields needs to be matched with the fields that PayPal is expecting.

    For doing that go to the file “cp_contactformpp.php”, about line #710 (after the form tag open there, line number may be different not sure which version are you using), and insert the following line:

    <INPUT TYPE=”hidden” NAME=”first_name” VALUE=”<?php echo $_POST[“fieldname1″]; ?>”>

    … “fieldname1” should be replaced with the name of the field on the form, that is with the internal name, the internal fields are named “fieldname1”, “fieldname2”, …. you can check that name into the form builder.

    The complete reference for the PayPal fields is located here:

    To request an address at PayPal go a file lines below and modify this parameter:

    <input type=”hidden” name=”no_shipping” value=”1″ />

    …to this one:

    <input type=”hidden” name=”no_shipping” value=”2″ />

    If you are using the pro version you can open a private ticket at , provide your page address and we will give you an edited file for that purpose.

    Thank you for using the plugin!

Viewing 1 replies (of 1 total)
  • The topic ‘Pass address to PayPal’ is closed to new replies.