Jump to content


Photo

Requiring Fields and Adding Custom Ones


  • This topic is locked This topic is locked
5 replies to this topic

#1 happydude

happydude

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 15 October 2003 - 01:55 PM

I'm working on a site that collects campaign donations. Because of the laws I need to collect the donator's occupation and employer.

Is there any way to have paypal collect this information? Also is there any way to require that fields are filled in?

Thanks

#2 PayPalSteve

PayPalSteve

    New Member

  • Members
  • 56 posts

Posted 15 October 2003 - 02:18 PM

PayPal does not collect this information, but you may provide text boxes for your customers to fill out prior to donating. Then you can have the pre-population of the fields fill in your PayPal payment screen. You can use pass through variables to capture the information that you are needing.

By pre-populating your customer's PayPal payment pages, your customers will not need to enter their information twice on two separate registration forms.

This enhancement allows advanced web developers the option of passing general registration information already provided by customers through a form on a seller's website, to PayPal payment pages.

While your customer's sign-up page will be pre-populated, it will still be editable. This enhancement is available for web developers familiar with HTML and knows how to post data.

To pass this information to the PayPal payment pages:

Post the variable name and the associated data to PayPal in HTML in the form of "variable name = value"

Change the cmd value to '_ext-enter' and add a new variable, 'redirect_cmd', whose value should be '_xclick'

To view the sample code, please follow these steps:

Click https://www.paypal.com/SELLMAN or copy and paste the entire link into the address bar

Click 'Pre-Populate Your Customer's PayPal Sign-Up'

Note: The Pre-population enhancement will not be provided in reverse fashion. We will not provide an option to pre-populate any information from our registration pages into the original website's registration forms.

You can check out working examples of this at http://www.iva.tech.nu/




Steven N.
PayPal Tech Support
PayPal, an eBay company
http://www.paypal.com/pdn

#3 happydude

happydude

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 15 October 2003 - 05:45 PM

What about using the custom field? How is that passed?

#4 ron

ron

    Advanced Member

  • Members
  • 2,003 posts

Posted 16 October 2003 - 04:02 AM

Pretty simple - just have the input from the customer fill it in...

Please input name and organization -
<input type="text" name="custom" size="60" />

Or, put it into an options field...

<input type="hidden" name="on0" value="Name and Organization" />
Input name and organization -
<input type="text" name="os0" size="60" />

Ron.

#5 happydude

happydude

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 16 October 2003 - 08:46 AM

Ron: Do you have a link explaining how those options fields work? Can there be more than one?

Thanks

#6 ron

ron

    Advanced Member

  • Members
  • 2,003 posts

Posted 16 October 2003 - 05:08 PM

Dude,

What you are allowed to do (the fields you may use) are defined by PayPal. Their server looks for specific things - if you send it other than what it is looking for, it ignortes it. It is not a matter of creating extra field names, it is a matter of understanding what is there for you to use.

"Most" of it is explained in PayPal's shopping cart manual. Log onto the site (you do not even have to enter your password), and you may see the variable fields you have available...

http://www.paypal.co...c-intro-outside

Ron.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users