Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Posts
    410
    Thanks
    119
    Thanked 0 Times in 0 Posts

    paypal button help

    i'm trying to create a new "Buy Now" button in paypal. when i do, it spits out the following code to drop into a website i'm trying to remodel:

    Code:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="XXXXXXXXXXXXX">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    however, previously on the site, the code for the buttons looked something like this:
    Code:
    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
    <input type="hidden" name="add" value="1" />
    <input type="hidden" name="cmd" value="_cart" />
    <input type="hidden" name="business" value="email@sample.com" />
    <input type="hidden" name="item_name" value="Item Title Goes Here" />
    <input type="hidden" name="item_number" value="NA" />
    <input type="hidden" name="amount" value="900.00" />
    <input type="hidden" name="no_note" value="1" />
    <input type="hidden" name="currency_code" value="USD" />
    <input type="hidden" name="bn" value="PP-ShopCartBF" />
    </form>
    i like this version a lot better because i can edit the price and title right here within the code. so how come when i create a new button, it doesnt spit out the code in this format???

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    You have the option when creating the button to encrypt the code or leave it unencrypted. Just set that option accordingly.

    You should also be aware that the unencrypted version is easy to spoof by the evil people out there so you want to make sure you have a server-side validation on the amount actually being transferred to make sure it's the amount required for the item being purchased.

  • #3
    Regular Coder
    Join Date
    Aug 2009
    Posts
    410
    Thanks
    119
    Thanked 0 Times in 0 Posts
    Thanks but I have Premier account type and do NOT see the encryption option anywhere. Do i need a Business account to turn encryption on or off?

    To make a long story short, I like to use the unencrypted version because each time i add a new product I can just copy over the button code from a previous product, simply change the price and product name and i'm good to go. but i also don't want the email address to be within that code. do yo have any suggestions???

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    You could set up a PayPal-only address (paypal@example.com) which only forwards emails from PayPal onto your normal account.

  • #5
    Regular Coder
    Join Date
    Aug 2009
    Posts
    410
    Thanks
    119
    Thanked 0 Times in 0 Posts
    that's not a bad idea, though i'm still taking suggestions if anyone else has one???


  •  

    Posting Permissions

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