Forum Moderators: mack

Message Too Old, No Replies

Frontpage & Paypal 1-2-3 Wizard

Question about the code

         

dloreski

7:26 pm on Feb 14, 2005 (gmt 0)

10+ Year Member



Hi everyone.
I downloaded something called Paypal 1-2-3 for inserting paypal payment buttons into front page from an add on it must put into frontpage.
I installed it and tried it.
Here's what happened.....
I needed to place 3 buy now buttons on 1 page.
Seemed to work great. I tested the first button and it was perfect. When I went to click the 2nd and 3rd button, rather that take me to my invoice, it takes me to the paypal home page. I copied the code from two of the buttons it made.
I found that there were a sequence of things in button #2 and button #3 that it inserted a 0 and 1 for the second 2 buttons. When I removed these zeros and ones, everything seems to take me to my invoice.
Is this ok, or am I removing something important?
Here is the code from a good first button and a second button that instead of taking visitors to my invoice, takes them only to the paypal home page.
The first thing it puts the zero with is "bn", then "cmd", and so on.

<form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post">
<input type="hidden" name="bn" value="AMPPFPWZ.301">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="dloreski@aol.com" >
<input type="hidden" name="item_name" value="All Ads Under $100 Selling Price With 1 Photo">
<input type="hidden" name="item_number" value="">
<input type="hidden" name="amount" value="5.95">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="image_url" value="">
<input type="hidden" name="return" value="http://www.horsemarkets.com/payment_confirmation.htm">
<p align="center">
<input type="image" src="http://images.paypal.com/images/x-click-butcc.gif" border="0" name="submit1">
</p>
</form>
<hr>
<p align="center">Item Name: Regular Ad With One Photo<br>

Item Number: <br>

Price: $12.95<br>

</p>

<form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post">
<input type="hidden" name="bn0" value="AMPPFPWZ.301">
<input type="hidden" name="cmd0" value="_xclick">
<input type="hidden" name="business0" value="dloreski@aol.com" >
<input type="hidden" name="item_name0" value="Regular Ad With One Photo">
<input type="hidden" name="item_number0" value="">
<input type="hidden" name="amount0" value="12.95">
<input type="hidden" name="currency_code0" value="USD">
<input type="hidden" name="image_url0" value="">
<input type="hidden" name="return0" value="http://www.horsemarkets.com/payment_confirmation">
<p align="center">
<input type="image" src="http://images.paypal.com/images/x-click-butcc.gif" border="0" name="submit2">
</p>
</form>

Corey Bryant

10:59 pm on Feb 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Paypal actually has the create the button on their site. It might be better to use that one. I have heard a few people complain about the Paypal Button integration. But using the one on their site, you can then just paste the HTML into your page & it can actually be a little more secure because they will encrypt your email

-Corey