...

View Full Version : paypal button help



sixrfan
03-08-2010, 06:47 PM
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:



<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:


<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???

Fumigator
03-08-2010, 07:04 PM
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.

sixrfan
03-08-2010, 07:46 PM
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???

Apostropartheid
03-08-2010, 07:57 PM
You could set up a PayPal-only address (paypal@example.com) which only forwards emails from PayPal onto your normal account.

sixrfan
03-08-2010, 08:01 PM
that's not a bad idea, though i'm still taking suggestions if anyone else has one???



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum