Paypal Standard
3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 1, 2008 (RSS)
By jposwald - July 1, 2008
Dave I have this in my Paypal form,
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="MyClientUser">
<input type="hidden" name="item_name" value="<?php echo htmlspecialchars($record['nombre']); ?>"/>
<input type="hidden" name="amount" value="<?php echo htmlspecialchars($record['precio']); ?>"/>
<input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="logo_custom" value="https://www.worldwidetrainings.com/images/buttons/inscribir_el.jpg">
<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-BuyNowBF">
<input name="submit" type="image" src="MyclientButton" alt="PayPal - The safer, easier way to pay online!" align="absmiddle" border="0">
<img alt="" border="0" src="https://www.paypal.com/es_XC/i/scr/pixel.gif" width="1" height="1">
</form>
When I click on the button Paypal page says:
Error in Price Format
I think I doing bad the next step:
<input type="hidden" name="item_name" value="<?php echo htmlspecialchars($record['nombre']); ?>"/>
<input type="hidden" name="amount" value="<?php echo htmlspecialchars($record['precio']); ?>"/>
I have to put another type of code, but I do not know which one.
Thank you, Juan.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="MyClientUser">
<input type="hidden" name="item_name" value="<?php echo htmlspecialchars($record['nombre']); ?>"/>
<input type="hidden" name="amount" value="<?php echo htmlspecialchars($record['precio']); ?>"/>
<input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="logo_custom" value="https://www.worldwidetrainings.com/images/buttons/inscribir_el.jpg">
<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-BuyNowBF">
<input name="submit" type="image" src="MyclientButton" alt="PayPal - The safer, easier way to pay online!" align="absmiddle" border="0">
<img alt="" border="0" src="https://www.paypal.com/es_XC/i/scr/pixel.gif" width="1" height="1">
</form>
When I click on the button Paypal page says:
Error in Price Format
I think I doing bad the next step:
<input type="hidden" name="item_name" value="<?php echo htmlspecialchars($record['nombre']); ?>"/>
<input type="hidden" name="amount" value="<?php echo htmlspecialchars($record['precio']); ?>"/>
I have to put another type of code, but I do not know which one.
Thank you, Juan.
Re: [jposwald] Paypal Standard
By Perchpole - July 1, 2008
Hi Juan -
I also have a Paypal cart set up. All I use is:
This works perfectly. I don't think you need any of the other code "htmlspecialchars" code.
:0)
Perch
I also have a Paypal cart set up. All I use is:
<?php echo $catalogueRecord['price'] ?>
This works perfectly. I don't think you need any of the other code "htmlspecialchars" code.
:0)
Perch
Re: [Perchpole] Paypal Standard
By jposwald - July 1, 2008
Hey PerchPole!! Thank you that works perfect!!