Customized Form Before Paypal Payment

Discussion in 'Programming' started by Oskar28, Aug 24, 2010.

  1. #1
    Hello,

    I want to build a WP Site where I am going to sell a service..

    Pre-built PayPal Shopping Cart "Add to Cart" . I want to have a FORM filled out by the user before he/she adds the item into the cart and those INFORMATION must be saved in the database and sent to my email.

    The FORM must have the fields that are also the details needed for the service..

    For example,

    Name :
    Email :
    Title : (Title of the Article)
    Keywords :
    Article :

    ..and so on..

    Please help me with this..

    Thanks!
     
    Oskar28, Aug 24, 2010 IP
  2. vinoth.t

    vinoth.t Peon

    Messages:
    156
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just add this form via iframe, So have a separate page for Payment and form validation.
     
    vinoth.t, Aug 24, 2010 IP
  3. Oskar28

    Oskar28 Active Member

    Messages:
    564
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Hello,

    I can't PM you.. can you help me with this?.. Thanks!..

    And can somebody here in DP able to do this and teach me how to go through with this?..

    Oskar28
     
    Oskar28, Aug 24, 2010 IP
  4. vinoth.t

    vinoth.t Peon

    Messages:
    156
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    
    <form name="order" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input name="add" value="22" type="hidden">
    <input name="cmd" value="_cart" type="hidden">
    <input name="business" value="paypal email" type="hidden">
    <table>
    <tbody><tr align="center"><td>Product</td>
    
    <td><input id="item_name" name="item_name" size="25" value="Product name" type="text"></td></tr>
    <input name="item_number" value="1" type="hidden">
    
    <tr align="center"><td>Number of items</td>
    <td align="left">
    <select style="margin-left: 57px;" id="itemqty" name="quantity">
    	<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option></select>
    </td></tr>
    
    <tr align="center" bgcolor="#aeddea"><td>Amount</td>
    <td><input name="amount" size="8" value="29" type="text">
    <select name="currency_code">
    	<option value="USD">U.S. Dollar</option>
    </select>
    </td></tr>
    <input name="no_shipping" value="0" type="hidden">
    <tr align="center"><td colspan="2">
    <input src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" name="submit" alt="Add To Cart" border="0" type="image">
    </td></tr></tbody></table>
    </form>
    
    Code (markup):
     
    vinoth.t, Aug 24, 2010 IP
    Oskar28 likes this.