This is the code provided to you from paypal if you want to use paypal as a shopping cart.
Here is my question,
Do you HAVE to go through paypal's website, and hard code each button for each item on your website? Or, can you use variables in the button more like (NOTE: For ease of reading, I bolded the different items between the two code blocks.)
If you can use the variables, I can really see the benifit of this. If you can't, and have to hard code each button.... Oy, that would be painfull.
Thanks in advance!
Code:
<form target="paypal" action="[URL unfurl="true"]https://www.paypal.com/cgi-bin/webscr"[/URL] method="post">
<input type="image" src="[URL unfurl="true"]https://www.paypal.com//en_US/i/btn/x-click-but22.gif"[/URL] border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="[URL unfurl="true"]https://www.paypal.com/en_US/i/scr/pixel.gif"[/URL] width="1" height="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="email@email.com">
<input type="hidden" name="item_name" value="[b]Test[/b]">
<input type="hidden" name="item_number" value="[b]Testitem[/b]">
<input type="hidden" name="amount" value="[b]0.01[/b]">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form
Do you HAVE to go through paypal's website, and hard code each button for each item on your website? Or, can you use variables in the button more like (NOTE: For ease of reading, I bolded the different items between the two code blocks.)
Code:
<form target="paypal" action="[URL unfurl="true"]https://www.paypal.com/cgi-bin/webscr"[/URL] method="post">
<input type="image" src="[URL unfurl="true"]https://www.paypal.com//en_US/i/btn/x-click-but22.gif"[/URL] border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="[URL unfurl="true"]https://www.paypal.com/en_US/i/scr/pixel.gif"[/URL] width="1" height="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="email@email.com">
<input type="hidden" name="item_name" value="[b]$Item_Name[/b]">
<input type="hidden" name="item_number" value="[b]$Item_Number[/b]">
<input type="hidden" name="amount" value="[b]$Cost[/b]">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form>
If you can use the variables, I can really see the benifit of this. If you can't, and have to hard code each button.... Oy, that would be painfull.
Thanks in advance!