How to send multiple items to PayPal -
i want send multiple item names , item prices paypal unable post item name , price below code can please me?
<form method="post" name="cart" action="https://www.sandbox.paypal.com/cgi-bin/webscr"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="navive_1295939206_biz@gmail.com"> <input type="hidden" name="lc" value="us"> <input type="hidden" name="currency_code" value="usd"> <input type="hidden" name="button_subtype" value="services"> <input type="hidden" name="notify_url" value="http://newzonemedia.com/henry/ipn.php" /> <input type="hidden" name="bn" value="pp-buynowbf:btn_buynowcc_lg.gif:nonhosted"> <input type="hidden" name="return" value="http://www.example.com/thank_you_kindly.html" /> <?php //select items table $srowcart_dtl = mysql_num_rows($srscart_dtl); if($srowcart_dtl > 0) { $cnt=1; while($srscart_dtl1 = mysql_fetch_assoc($srscart_dtl)) { ?> <input type="hidden" name="item_name[<?php echo $cnt ?>]" value="<?php echo $srscart_dtl1['cart_iname']; ?>"> <input type="hidden" name="amount[<?php echo $cnt ?>]" value="<?php echo $srscart_dtl1['cart_iprc']; ?>"> <?php $cnt++; } } ?> <input type="image" src="https://www.paypal.com/en_us/i/btn/btn_buynowcc_lg.gif" border="0" name="submit" alt="paypal - safer, easier way pay online!"> <img alt="" border="0" src="https://www.paypal.com/en_us/i/scr/pixel.gif" width="1" height="1"> </form>
create code this:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <!-- change _xclick _cart --> <input type="hidden" name="upload" value="1"> <!-- add line in code --> <input type="hidden" name="business" value="your_seller_account"> <input type="hidden" name="item_name_1" value="item name 1"> <input type="hidden" name="amount_1" value="1.00"> <input type="hidden" name="item_name_2" value="item name 2"> <input type="hidden" name="amount_2" value="2.00"> <input type="submit" value="paypal"> </form>
Comments
Post a Comment