wemustdesign Posted March 4, 2010 Share Posted March 4, 2010 I am creating a site using Paypal IPN. I have searched the net but can't find much on multiple items. How do I send multiple items to Paypal rather than just the total for products bought? Link to comment https://forums.phpfreaks.com/topic/194167-paypal-multiple-items/ Share on other sites More sharing options...
ialsoagree Posted March 4, 2010 Share Posted March 4, 2010 Just number the items... item_number1, item_name1, item_number2, item_name2 etc. https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables Also make sure that you're submitting your system as a cart with <input type="hidden" name="cmd" value="_cart" /> and not <input type="hidden" name="cmd" value="_xclick" /> Link to comment https://forums.phpfreaks.com/topic/194167-paypal-multiple-items/#findComment-1021591 Share on other sites More sharing options...
wemustdesign Posted March 4, 2010 Author Share Posted March 4, 2010 well this is what I am using but I am getting an error from paypal saying theres nothing in my cart. Is it my code? <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="currency_code" value="GBP"> <input type="hidden" name="item_number1" value="item number"> <input type="hidden" name="item_name1" value="Item Name"> <input type="hidden" name="amount1" value="20"> <input type="hidden" name="item_number2" value="item number"> <input type="hidden" name="item_name2" value="Item Name"> <input type="hidden" name="amount2" value="20"> <input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> Link to comment https://forums.phpfreaks.com/topic/194167-paypal-multiple-items/#findComment-1021660 Share on other sites More sharing options...
ded Posted March 19, 2010 Share Posted March 19, 2010 add another underscore. change item_number1 to item_number_1 Link to comment https://forums.phpfreaks.com/topic/194167-paypal-multiple-items/#findComment-1028816 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.