Results 1 to 4 of 4

Thread: I need help with an Order Form(PayPal), urgent, please help.

  1. #1
    Join Date
    Feb 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy I need help with an Order Form(PayPal), urgent, please help.

    Hi,

    I am a new member over here, and I want some help guys. I am building a Order Form that will make payments to PayPal. The forms description is as follows:

    1) It will have 3 Radio buttons. (Radio button values will be $10, $20, $30 Visitor can select only one at a time.

    2) The product price is $50. (no radio buttons for this)

    2) It will have a Drop Down list with some names in it (like State names).

    3) And a BUY NOW button.

    The validations I want is that:

    1) That users when click the Button if the above mentioned fields are not filled it will give error. And if filled it will go to the PayPal section to allow the visitor to make the payment. If the user selects one of the Radio buttons, say $10, the total will be $60 ($50+$10). And the PayPal section will be displaying this.

    Can anybody help me in this. I have tried doing this, but its not happening.

    I will be waiting for some help.

    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, the typical product price in a PayPal form would be represented in the form, for $50.00 by:

    HTML Code:
    <input type="hidden" name="amount" value="50.00">
    Now, you say you want 3 radios to add 10, 20, or 30 to that, this could be represented like so (all still within the original form):

    HTML Code:
    <input type="hidden" name="amount" value="50.00">
    <input type="radio" name="amount" value="60.00">add $10<br>
    <input type="radio" name="amount" value="70.00">add $20<br>
    <input type="radio" name="amount" value="80.00">add $30<br>
    Since all four of these inputs is named "amount", if no radio is selected, the price will be 50, if any one of the radio buttons are selected (since they all have the same name, only one can be selected), the price will be the value of the selected radio.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What about the validations? Can you please give me the full code?

    Waiting for your reply.

    Thank you.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There really isn't any validation via javascript or HTML, and no - even if there were, I cannot give you the full code without all of your required form to work from, and without knowing what this mysterious:

    Drop Down list with some names in it (like State names)
    really is, and is used for. But the good news is, the amount field is hard coded on your end and is hidden, so doesn't need to be validated. It should probably be secured though. Information on this is available on the PayPal site, or instead, just require some kind of contact information like email, if the price entered isn't correct, contact your buyer about it.

    Validation would have to take place on PayPal to have any meaning. You can set certain fields to be required, the buyer's mailing information is one. See:

    https://www.paypal.com/IntegrationCe...f-buy-now.html

    or download the PDF version (more complete - right click and choose save):

    https://www.paypal.com/en_US/pdf/PP_...ationGuide.pdf

    or hire a certified developer:

    http://www.paypal.com/Certification/dc_directory.html
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •