Order Form

TheLanternLight
Contributor
Contributor

Hello! I offer psychic readings at my site (http://www.thelanternlight.com) and I need clients to submit a questionairre form. I know I can make a Pay Now button that allows the client to pay, but I need the user to actually answer a few questions first. I can't seem to figure out how to do this.

 

On the one hand, I can have the client pay up front and then I can email that person the questionairre form. But then how do I get that person's email address and associate it with his order?

 

Another option is to create a contact form with all the appropriate questions, but I'm not sure if PayPal offers this feature (does it?). If there is a contact form, how is it associated with the Pay Now button?

 

Ideally, I just need the client to click the Pay Now button and complete the transaction while also submitting his or her email address. Is there an easy, efficient way to do all of this so I don't have to inconvenience the client?

 

Thank you so much!

 

 

Login to Me Too
7 REPLIES 7

snowshoe
Frequent Advisor
Frequent Advisor

Unfortunately there's no PayPal options or features for creating a Contact Form.

 

What you have in mind requires the item button code to be manually created.  The online button creator is limited to allowing only 2 text input fields.  In order to have more than two text input fields, you have to manually create your item button code. 

 

As we don't know exactly what you have in mind for your questionnaire, it's hard to provide any code examples.  There's various options from radio buttons, yes or no type buttons, check boxes and text input fields, required fields and more.  Some options like required fields have to have a custom script to manage the data input.  Depending on your needs, you may want to seek help from a Developer.

 

To keep things less complicated at this point, check out the examples below.  One is an Add to Cart and the other is a Buy Now.  Both demonstrate how to use the "option" variables for text input fields.  (Feel free to tweak the examples.)

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Button Example Code</title>

<!-- START META TAG SECTION -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="Content-Language" content="en">
<!-- END META TAG SECTION -->
   
</head>

<body>

<!-- START SAMPLE CODE SECTION -->


<!-- PARAGRAPH 1 -->
Basic Examples

<br><br>

Add to Cart and Buy Now Example, Multiple Text Input.

<br><br>

Notes:
<br>
* This example demonstrates how to do the same thing using either a Buy Now Item Button or Add to Cart Item Button.


<br><br>
<hr align="left" width="50%" noshade>
<br><br>

<!-- START CONTENTS -->

<!-- START BUTTON EXAMPLES -->

<!-- START BUTTON EXAMPLES -->

<!-- Start of Buy Now Form -->
Widget Statue Trophy - $100.00 plus $20.00 shipping

<br><br>

<!-- Start of Buy Now Form -->
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable. -->
<input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg">
<input type="hidden" name="cmd" value="_xclick">
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email address">
<input type="hidden" name="item_name" value="Widget Statue">
<input type="hidden" name="item_number" value="WS-1001">
<input type="hidden" name="amount" value="100.00">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="2">
<!-- Replace value with the web page you want the customer to return to after a successful transaction -->
<input type="hidden" name="return" value="http://www.yourwebsite.com/ThankYou.html">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/Cancel.html">
<!-- Note: shipping override variable is used with this example -->
<input type="hidden" name="shipping" value="20.00">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted">
<!-- -->
Name Plate Engraving Information:
<br><br>

First Name:&nbsp;&nbsp;
<input type="hidden" name="on0" value="First Name">
<input type="text" name="os0" size="20">
<br><br>
Last Name:&nbsp;&nbsp;
<input type="hidden" name="on1" value="Last Name">
<input type="text" name="os1" size="20">
<br><br>
School:&nbsp;&nbsp;
<input type="hidden" name="on2" value="School">
<input type="text" name="os2" size="20">
<br><br>
Event:&nbsp;&nbsp;
<input type="hidden" name="on3" value="Event">
<input type="text" name="os3" size="20">
<br><br>
Date:&nbsp;&nbsp;
<input type="hidden" name="on4" value="Date">
<input type="text" name="os4" size="8">
<br><br>
Team Name:&nbsp;&nbsp;
<input type="hidden" name="on5" value="Team Name">
<input type="text" name="os5" size="20">
<br><br>
Place:&nbsp;&nbsp;
<input type="hidden" name="on5" value="Place">
<input type="text" name="os5" size="20">
<br><br>
<!-- -->
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<!-- End of Buy Now Form -->


<br><br>
<hr align="left" width="50%" noshade>
<br><br>



<!-- Start of Add to Cart Form -->
Widget Statue Trophy - $100.00 plus $20.00 shipping

<br><br>

<!-- Note: target="paypal" was replaced with target="_self" -->
<!-- Note: shopping_url also added to code -->
<!-- These two changes allow better functionality with IE and Firefox --> 
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable. -->
<input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg"> 
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email address">
<input type="hidden" name="item_name" value="Widget Statue">
<input type="hidden" name="item_number" value="WS-1001">
<input type="hidden" name="amount" value="100.00">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
<!-- Replace value with the web page you want the customer to return to -->
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/Shop.html">
<!-- Replace value with the web page you want the customer to return to after a successful transaction -->
<input type="hidden" name="return" value="http://www.yourwebsite.com/ThankYou.html">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/Cancel.html">
<!-- Note: shipping override variable is used with this example -->
<input type="hidden" name="shipping" value="20.00">
<!-- -->
Name Plate Engraving Information:
<br><br>

First Name:&nbsp;&nbsp;
<input type="hidden" name="on0" value="First Name">
<input type="text" name="os0" size="20">
<br><br>
Last Name:&nbsp;&nbsp;
<input type="hidden" name="on1" value="Last Name">
<input type="text" name="os1" size="20">
<br><br>
School:&nbsp;&nbsp;
<input type="hidden" name="on2" value="School">
<input type="text" name="os2" size="20">
<br><br>
Event:&nbsp;&nbsp;
<input type="hidden" name="on3" value="Event">
<input type="text" name="os3" size="20">
<br><br>
Date:&nbsp;&nbsp;
<input type="hidden" name="on4" value="Date">
<input type="text" name="os4" size="8">
<br><br>
Team Name:&nbsp;&nbsp;
<input type="hidden" name="on5" value="Team Name">
<input type="text" name="os5" size="20">
<br><br>
Place:&nbsp;&nbsp;
<input type="hidden" name="on5" value="Place">
<input type="text" name="os5" size="20">
<br><br>
<!-- -->
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<!-- End of Add to Cart Form -->

<!--  Start of View Cart Button Code  -->
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable. -->
<input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg"> 
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="display" value="1">
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email address>
<!-- Replace value with the web page you want the customer to return to -->
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/Shop.html">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_viewcart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form> 
<!--  End of View Cart Button Code  -->



<!-- END BUTTON EXAMPLES -->



<!-- END SAMPLE CODE SECTION -->

<br><br>


<br><br><br><br>
<hr align="left" width="50%" noshade>
<br><br>
NOTES:
<br>
In order to test the code, you must replace the &quot;business&quot; value variable with your PayPal Email Address or your Merchant Account ID.


</body>
</html>

 

 

 

 

 

 

Login to Me Too

TheLanternLight
Contributor
Contributor

Okay, firstly thank you so much, that's almost exactly what I was needing. So far I've done this:

 

http://www.thelanternlight.com/testimonials.html

 

However, I'm not sure how to make it work. I went into my paypal account and created a button for this particular service and placed it at the end of the coding you see there in the page I just linked. However when that button is clicked nothing happens.

 

I'm so sorry, I know I'm being such a noob about this but I can't find the information I need anywhere :X

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

Based on the examples I posted, looks like you got it started however, you mixed in an "encrypted" item button coding.  No need to do that at all.    Basically what you have is part of one button mixed in with some encrypted code from the online button creator which causes everything to fail.  

 

Your code should look like this:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Test</title>

<!-- START META TAG SECTION -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="Content-Language" content="en">
<!-- END META TAG SECTION -->



</head>

<body>

<!-- INSERT TEST CODE HERE -->


<!-- Start of Buy Now Form -->
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable. -->
<input type="hidden" name="cpp_header_image" value="https://www.thelanternlight.com/logo.jpg">
<input type="hidden" name="cmd" value="_xclick">
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email adderss">
<input type="hidden" name="item_name" value="Widget Statue">
<input type="hidden" name="item_number" value="WS-1001">
<input type="hidden" name="amount" value="100.00">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="2">
<!-- Replace value with the web page you want the customer to return to after a successful transaction -->
<input type="hidden" name="return" value="http://www.thelanternlight.com/thankyou.html">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="http://www.thelanternlight.com/cancel.html">
<!-- Note: shipping override variable is used with this example -->
<input type="hidden" name="shipping" value="20.00">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted">
<!-- -->
<br><br>

Full Name:&nbsp;&nbsp;
<input type="hidden" name="on0" value="Full Name">
<input type="text" name="os0" size="20">
<br><br>
Valid Email Address:&nbsp;&nbsp;
<input type="hidden" name="on2" value="Email Address">
<input type="text" name="os2" size="20">
<br><br>
Birth Date and Time:&nbsp;&nbsp;
<input type="hidden" name="on3" value="Birth Date and Time">
<input type="text" name="os3" size="20">
<br><br>
Name of Other Person Involved (N/A if none):&nbsp;&nbsp;
<input type="hidden" name="on4" value="Name of Other Person Involved">
<input type="text" name="os4" size="20">
<br><br>
City, State/Province, Country of Birth:&nbsp;&nbsp;
<input type="hidden" name="on5" value="City, State/Province, Country of Birth">
<input type="text" name="os5" size="20">
<br><br>
Comments (Please describe your questions, topics, and so on as specified in the service's description):&nbsp;&nbsp;
<input type="hidden" name="on5" value="Place">
<input type="text" name="os5" size="75">
<br><br>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<!-- End of Buy Now Form -->


<!-- END TEST CODE SECTION -->



</body>
</html>

 

This example is a complete web page, just easier for testing purposes.  Just replace the words "your email address" with your actual PayPal email address.

Login to Me Too

TheLanternLight
Contributor
Contributor

Ooo la la! Well I got it working and even did a successful transaction with myself, however the form didn't seem to send. I didn't get anything sent to my email aside from confirmation that the payment went through. As well it didn't send me to thankyou.html at any point Smiley Indifferent

 

http://www.thelanternlight.com/testimonials.html

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

You can't really test your own code live using your PayPal Account and expect to get the same results as a cutomer would.   You need a friend to do that as it has to be a different account other than yours.

 

As for not getting returned to a thank you page.  Did you setup that featue in your Account Profile?

 

Login to your Account.

Click on Profile.

Click on My Selling Tools.

Under Selling Online, look for Website preferences.

Click on Update.

Enable Auto Return.

Below that, enter the complete URL of the Thank You page you want to use.

Scroll down to the PayPal Account Optional.

Select the radio button for On.

Click on Save.

 

 

Suggest that you check out this user guide as it will show you how to do tons of stuff and answer many questions.

https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pp_websitepaymentsstandard_integrat...

Login to Me Too

TheLanternLight
Contributor
Contributor

??

 

So is there not a way to complete the transaction while also sending the form?

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

See my previous post as it has been updated.

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.